Unhandled 'error' event #331

aimnadze opened this Issue Nov 7, 2012 · 2 comments

1 participant


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

        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.


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.


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

@aimnadze aimnadze closed this Nov 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment