-
Notifications
You must be signed in to change notification settings - Fork 122
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
0.1.11 caused fatal error: socket hang up #70
Comments
Same bug hit me. As soon as SSL comes into play connections fail. Pinning to 0.1.10 still works. |
Ouch! Same problem, glad there's a workaround. |
Same for me. I see the request response in browser, but nginx says that there was a plain request over SSL port. |
I just encountered this same error...and burned quite a bit of time tracking it down! Downgrading to 0.1.10 worked for me as well. |
Had the same error, after debugging forever - downgraded to v0.1.10 :( |
Also experiencing this. Downgrading to 0.1.10 |
I believe it has something to do with the upgrade to the 1.x.x branch of http-proxy. grunt-connect-proxy 0.1.10 is using "http-proxy": "~0.10.3". There's a lot of rewritten work in the 1.x.x branch so it's hard to be any more specific on what the cause might be. |
I've resolved this issue in my own plugin (grunt-connect-prism) by handling the new error event in http-proxy Read more about the error handler on |
@seglo sadly your fork doesn't work for me. |
@rbrcurtis Thanks for trying. Is your project on github or can you provide me with a reliable way of reproducing the issue? |
Its not unfortunately (work project). Its not doing anything special I’ll dig into it more tomorrow when I have time and if I can’t figure it On Tue, Oct 7, 2014 at 3:24 PM, Sean Glover [email protected]
|
@rbrcurtis Is the server you're proxying using HTTPS? I think https://github.com/nodejitsu/node-http-proxy#options |
my local server is not https, but the remote servers I’m proxying to are On Wed, Oct 8, 2014 at 10:49 AM, Sean Glover [email protected]
|
We're having the "Fatal error: socket hang up" on some rest api that runs on port 8080 with "https: false". Strangely it helps to change the api and proxy settings to another port (e.g. 8082). Another phenomenon is that some in our team are having this issue and some not. I myself never had it until today. Now I also changed the port to 8082 and it works again. We're using grunt-connect-proxy 0.1.11. |
I have the same situation as jox. |
absolutely. reverting to 0.1.10 suppresses the socket-hangup bug. i am proxying a https endpoint for oauth2. |
I can confirm that changing the port worked for me. Here is relevant part of my Gruntfile.js:
|
I'm having a problem with secure WebSocket connections over the proxy (HTTPS->HTTP). Normal websocket connections work fine in my app. So I thought I'd debug the wss case and wrote a WebSocket test for it. I decided to go simple and started off with just normal ws:// connections. However, even that didn't work since I got slapped in the face by this "fatal error: socket hang up" bug, so now I'm stuck with no working websocket connections over the proxy whatsoever (even though they work in my browser). Changing ports doesn't seem to work and in 0.1.10 the tests won't even run. I've tried to dig in to http-proxy also, but to no avail. The branch with the websocket test is here https://github.com/Flexim/grunt-connect-proxy/tree/wss if you're interested in debugging it with me. |
I have the same problem in 0.1.11. I have two proxies as follows. |
I'm having the same "Fatal error: socket hang up" problem with https proxy. Using http works just fine. Reverting to 0.1.10 doesn't seem to help. Would love to turn up the debugging here to understand what the problem may be. Any hints as to how to accomplish that? |
Correction: reverting to 0.1.10 did work, I had to clean out the newer node_modules version first. |
I'm also having this problem on 0.2.0 (win8, node 0.12.2); reverting to 0.1.10 did work for me as well. |
I confirm this is still happening on 0.2.0 |
same issue here, and the servers I am proxying to have valid certificates, not self-signed ones, the only solution is to stick to [email protected] and block it via npm shrinkwrap --dev |
The latest update to 0.1.11 caused my existing proxy setup to fail with "fatal error: socket hang up".
My setup:
The error only occured when trying to use https.
Switching back to 0.1.10 resolved my issue.
The text was updated successfully, but these errors were encountered: