[HPM] Error occurred while proxying request localhost:3000/api/defaultDataset to http://localhost:8000/ [ECONNREFUSED] (https://nodejs.org/api/errors.html#errors_common_system_errors) #850
-
Hi, Our development team is using http-proxy-middleware to have frontend talk to backend. Frontend is react.js on localhost:3000 and backend is on localhost:8000. For the past 2 weeks, we had a problem where our frontend requests weren't hitting backend due to 504 gateway error. We ensured that our version of http-proxy-middleware was on 2.0.6 (latest stable release). Could you help us resolve this issue? The frontend (port 3000) is trying to talk to the backend (port 8000) but the requests are not being proxied to localhost:8000, instead, it is talking to localhost:3000 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed! Changed |
Beta Was this translation helpful? Give feedback.
Fixed! Changed
target: "http:localhost:8000"
totarget: "http:127.0.0.1:8000"