Skip to content
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

Unhandled 'error' event #331

Closed
ghost opened this issue Nov 7, 2012 · 2 comments
Closed

Unhandled 'error' event #331

ghost opened this issue Nov 7, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 7, 2012

My code handles proxyError event on require('http-proxy').RoutingProxy. But after several days of heavy use the module crashes with this error:

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Parse Error
    at Socket.socketOnData (http.js:1367:20)
    at TCP.onread (net.js:403:27)

Please, help me debug the problem. I think the native error event gets fired multiple times.

@ghost
Copy link
Author

ghost commented Nov 7, 2012

In http-proxy.js lines: 302 and 316
reverseProxy.removeListener('error', proxyError);
reverseProxy.once('error', proxyError);

These two lines remove error listeners. But soon another error event occurs and no handler is registered that time. Unfortunately I have no steps to reproduce this.

@ghost
Copy link
Author

ghost commented Nov 9, 2012

I've investigated the problem and found a bug in Node.js which I'm gonna report now.

@ghost ghost closed this as completed Nov 9, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants