You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't proxy from localhost:3000 to localhost:7000 without internet connection #1116
In my client's package.json. "proxy": "http://localhost:7000"
with internet connection everything is fine and the api works awesome.
without internet connection it shows me this error:
Could not proxy request /api/users/signup from localhost:3000 to http://localhost:7000 (ENOENT).
the problem is that mot of my time I am offline.
Activity
chimurai commentedon Nov 30, 2016
http-party/node-http-proxy#835 (comment)
gaearon commentedon Nov 30, 2016
Can we fix this in https://github.com/nodejitsu/node-http-proxy?
gaearon commentedon Dec 5, 2016
Apparently it's "by design" in Node?
vladimir-shcherbakov/node@8e0f244#comments
I don't really understand this. Should we just hardcode it to use
127.0.0.1instead oflocalhoston Windows, like https://github.com/seanpoulter/growly/commit/9fc8a610032ca705162a70647e6a52c9a302c6cb?rksh1997 commentedon Dec 7, 2016
@gaearon I did that, and it worked, I didn't find any other solution
gaearon commentedon Dec 7, 2016
I'll take a PR that does it on Windows (the problem is specific to Windows right?). Would you like to submit one?
bunshar commentedon Jan 12, 2017
I am working on this now.
gaearon commentedon Mar 7, 2017
@bunshar Any updates?
vikasaditya commentedon Mar 15, 2017
@gaearon the change was very small but lost my access to windows machine for testing. Will install on virtualbox and send PR with a day or two.
Timer commentedon Aug 2, 2017
I believe this has been fixed. Please open if this still reproduces on the newest
react-scripts.