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

proxy localhost without internet connection gives "getaddrinfo ENOENT" #835

Open
flyon opened this Issue Jun 2, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@flyon

flyon commented Jun 2, 2015

I've got node running on http://localhost:8001 and have http-proxy configured to proxy https://localhost:8002 back to http://localhost:8001.

This works fine as long as I'm connected to the internet, but when I'm disconnected from the internet http://localhost:8001 still works, but when I access https://localhost:8002 I get this error:

    throw err;
          ^
Error: getaddrinfo ENOENT
    at Object.exports._errnoException (util.js:746:11)
    at errnoException (dns.js:49:15)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)

Which makes it hard for me to work with this while on the road (I want to be able to work without internet connection)

Is there some setting I should set or should it be fixed?

@peterhodges

This comment has been minimized.

Show comment
Hide comment
@peterhodges

peterhodges Sep 30, 2015

I ran into this yesterday.

Try using 127.0.0.1 instead of localhost.

See: nodejs/node-v0.x-archive#25338

peterhodges commented Sep 30, 2015

I ran into this yesterday.

Try using 127.0.0.1 instead of localhost.

See: nodejs/node-v0.x-archive#25338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment