Do you want to request a feature or report a bug?
Bug
What is the current behavior?
[HPM] Error occurred while trying to proxy request /api/errors from localhost:3000 to http://localhost:55323 (ENOENT) (https://nodejs.org/api/errors.html#errors_common_system_errors)
If the current behavior is a bug, please provide the steps to reproduce.
Turn of your WIFI or unplug your network cable
What is the expected behavior?
Proxy requests, especially if they are on localhost...
Please mention your webpack and Operating System version.
2.1.0-beta.12
Windows 10
same issue
I tried reproducing your issue by proxying to a server on localhost, but it worked fine for me when offline. Could you provide more information? Note that we use http-proxy-middleware for proxying, so if there is an issue, it's probably over there.
same issue.. I'm trying to search more useful information to put here... But I don't find anything that could be help
same issue ...!!
Similar discussion @ https://github.com/facebookincubator/create-react-app/issues/1116
On _Windows_ you have to use 127.0.01 instead of localhost to be able to work offline.
the same issue with me!,I find in the http-proxy-middleware,there is a error.
in function getProxyEventHandler()
_.get will return undefined instead of a Function type.
But it need a function to listen proxyEvents
Guys, I think "localhost" is resolved with an active connection to the router. Try to replace localhost to 0.0.0.0 in your proxy object like this:
proxy: {
'/api': {
target: {
host: '0.0.0.0',
port: 3000,
},
secure: false,
},
},
Pruning due to age, inactivity, and apparent solutions/workarounds.