Auth0 Home Blog Docs

Error while trying to access api from my React-App


Hello There,

I have implemented a simple api which is expecting the access token.
I am providing it the same and have also configured the api correctly.
My api is running on http://localhost:3001, and i have configured the same in the api-identifier.
But when i try to hit it from my react app, i get the following error:-
"Error: connect ECONNREFUSED
** at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)"**

Can anyone help me on what is going on?


Hey there!

I’m closing this one as you also created another topic for that:

For future reference please do not duplicate topics as it creates information mess and it’s harder to tackle for us and more easily navigate and communicate knowledge. Thanks for understanding!

closed #3