-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Proxy requests do not work when not connected to internet #744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 @ facebook/create-react-app#1116 On Windows you have to use |
the same issue with me!,I find in the http-proxy-middleware,there is a error. |
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: |
Pruning due to age, inactivity, and apparent solutions/workarounds. |
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
The text was updated successfully, but these errors were encountered: