Solving “Proxy error: Could not proxy request xxx from yyy” from local ReactJS app to NodeJS app
So, while I am calling from a ReactJS app, listening on port 3000, locally to also locally running NodeJS app, listening on port 8000, I was using the proxy parameter in package.json in ReactJS. But I was getting the following error.
Proxy error: Could not proxy request from localhost:3000 to http://localhost:8000/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ETIMEDOUT).
To resolve this, one has to add “secure: false” in package.json defined in ReactJS and restart again.
The reason for the solution has to with the webpack configuration. See:
However, let’s say the solution above did not solve the problem. What is the issue? Another possible issue is that the server is listening on ipv6 ::1 address while the…