Hi, I keep on getting this error:
Proxy error: Could not proxy request /api/messages from localhost:3000 to localhost:3001/. See nodejs.org/api/errors.html#errors_... for more information (ECONNREFUSED).
How to solve?
Oh, that's interesting. Are you running the server with npm run dev? Are there any other errors in the terminal?
npm run dev
Yes I am. No other errors in the terminal
Have you filled in the .env file with your credentials? And ensure you're not using test credentials?
.env
What's the code you have for the /api/messages endpoint right now?
/api/messages
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, I keep on getting this error:
Proxy error: Could not proxy request /api/messages from localhost:3000 to localhost:3001/.
See nodejs.org/api/errors.html#errors_... for more information (ECONNREFUSED).
How to solve?
Oh, that's interesting. Are you running the server with
npm run dev
? Are there any other errors in the terminal?Yes I am. No other errors in the terminal
Have you filled in the
.env
file with your credentials? And ensure you're not using test credentials?What's the code you have for the
/api/messages
endpoint right now?