bradtraversy/expense-tracker-mern

Proxy error: Could not proxy request /api/v1/transactions from localhost:3000 to http://localhost:5000.

Closed this issue · 4 comments

Proxy error: Could not proxy request /api/v1/transactions from localhost:3000 to http://localhost:5000.

these steps solved the issue for me. give it a try

  1. install the dependencies in both the main project folder and the client folder
  2. make sure your mongoDB is running,
  3. add your localhost Db uri to the config.env file which is most likely mongodb://localhost:27017/nameofapp

stackoverflow
This should solve your issue.

stackoverflow
This should solve your issue.

Had a similar issue in the past and this solved it for me.

I was stuck at the same error for a while and none of these solutions seemed to work for me. The error message I was getting is as follows:
Error: connection <monitor> to 15.206.200.5:27017 closed
[nodemon] app crashed - waiting for file changes before starting...
Proxy error: Could not proxy request /api/v1/transactions/ from localhost:3000 to http://localhost:5000/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

Solution:

  1. Add the following IP address to the IP Access list in MongoDB Atlas.
    0.0.0.0/0
  2. Follow the steps in the previous comment's stackoverflow link to solve Proxy error



    Adding this comment just in case someone faces the issue similar to mine