node-react-ecommerce
node-react-ecommerce copied to clipboard
Proxy error: could not proxy request /api/products
During Lesson 15, Signin and Resgister screens:
Error on Terminal:
Proxy error: Could not proxy request /api/products from localhost:3000 to http:
Error on Console: Failed to load resource, the server responded with a error of :3000/api/products
Error on Web page: Request failed with status code 404
I tried restarting the terminal and reinstalling the packages but still the same. my code on github is at: [https://github.com/blasius18/thefrockboutique]
Please help!!
You need to open the vs code and run it on your computer. then send me a message over Skype to set a 15 mins call for you to fix your issue. My Skype name is basir.jafarzadeh
Check this:
- frontend/package.json
{
"name": "frontend",
"proxy": "http://127.0.0.1:5000",
...
}
- stop running frontend and backend
- Run backend first
npm start
- Then frontend
cd frontend
npm start
That worked, thank you so much, sir :):)
happy to hear that.
sir i have also same problem, Error on Terminal: Proxy error: Could not proxy request /api/products from localhost:3000 to http:.
Error on Console: Failed to load resource, the server responded with a error of :3000/api/products
Error on Web page: Request failed with status code 404
I tried restarting the terminal and reinstalling the packages but still the same.
but cant got solution till now
sir please resolve the same error in my project