basir / node-react-ecommerce

Build ECommerce Website Like Amazon By React & Node & MongoDB
https://node-react-ecommerce-app.herokuapp.com/
1.69k stars 793 forks source link

Proxy error: Could not proxy request /api/products from localhost:3000 to http://127.0.0.1:5000. #98

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi Basir,

First of all, very good course.

Second, I have a problem :(.

I get this message in the terminal and Products page doesn't render any products, nor I can sign in or register user. Capture

Proxy error: Could not proxy request /api/users/register from localhost:3000 to http://127.0.0.1:5000. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

Can you please indicate what to look for?

basir commented 4 years ago

hello there thanks check this to fix it https://gist.github.com/basir/d121df24c47861e13a1cdcbed1cca902#proxy-error-could-not-proxy-request-apiproducts