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
ECONNRESET with version 1.0.10 #150
Comments
Interesting. That shouldn't be happening, obviously. I'm actually a little bit puzzled about how it even can happen. WebSocket-Node is using Node streams-1 semantics, meaning that we never actually call Can you provide any more context or information about when this error is happening, under what circumstances, etc? Does it happen during the handshake? Is it after the connection has been established for a while? |
For what it's worth, that means that the connection was lost anyway, and there's nothing that could be done to recover from that. There's actually not a strong use case for handling the |
I'm using this node package that uses websocket-node: https://www.npmjs.org/package/signalr-client I'm trying to upgrade websocket-node because I need to communicate with a service that requires client certificates, and with websocket-node 1.0.8 I can't set the pfx at Request options.
Thank you for the quick response |
I'm still interested in when this error is happening. Is it preventing you from even successfully connecting at all? Does it happen some time later after the connection has been working for a little while? |
I'm connected to the server and I receive the response, but the connection throws that error. You can see here the service log:
|
I'm getting a similar problem on Windows 7 and node 0.10.30. I get Error: read ECONNRESET as soon as I try and connect to my remote server. I don't yet know if this is a configuration problem or bad implementation on the server. I don't know what I can do to troubleshoot further. |
@plato-cambrian are you using WebSocket-Node directly, or via a library that uses it? Can you provide information about what is failing and how? |
Any updates on this? |
@theturtle32 turned out that my problem was simply I was trying to connect to a W3C Websocket server with |
Hi, I experience a similar problem as described in the original bug report:
What I'm doing: I connect via WebSocket to a Docker container, I start the container, read it's output on "data" events. Every now and then (let's say 1 out of 5 times), however, the connection is not cleanly closing and instead an "error" event is triggered (with the ECONNRESET error). At this point the container is already done and has produced all its output. So I assume it was intending to close the connection. Unfortunately, I can't determine the root of this behavior. Any idea how I could close in on that? Using: websocket 1.0.21 |
Hi,
I'm using websocket 1.0.8 in a project with success, but when I try to upgrade it to 1.0.10 I lose the connection, receiving the following error:
[Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
There's anything related to the upgrade that I'm missing?
The text was updated successfully, but these errors were encountered: