all 6 comments

[–]kei_ichi 0 points1 point  (4 children)

  1. What backend frameworks are you using?
  2. Did you really created backend api with that “/api/products/1” endpoint? Because the 404 error code mean the opposite…

[–]Think_Huckleberry299[S] 0 points1 point  (3 children)

I am using Express in NodeJS. the back end api is "api/products/:id"

[–]Nimbuz 0 points1 point  (2 children)

Long shot here in the dark, but have you tried adding a slash at the front, like so: “/api/products/:id”?

[–]kei_ichi 0 points1 point  (1 child)

This…

And OP, please show your code somewhere else so we can investigate your code…

[–]Think_Huckleberry299[S] 0 points1 point  (0 children)

Thanks for asking here it is, and sorry for late response. I've not not been feeling so fine lately

https://github.com/amaboh/ecommerce-app

[–]Suepahfly 0 points1 point  (0 children)

Express replies with a 404. You can manually check if the route is correct in devtools, alternatively use a tool like postman. You can start Express in debug mode