-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fixed "cannot read property aborted of null bug" #1201
fixed "cannot read property aborted of null bug" #1201
Conversation
Is there any way you could add a test for this? |
sure, sorry about that. |
Can you please show us a small piece of code to reproduce the issue? |
It looks that the issue occurs when I try to connect to a host behind a firewall. Maybe is some kind of race condition connected to the HTTP timeout. Tell me if you can reproduce this so that I proceed to write some test for the fix. |
@helloIAmPau I cannot reproduce the issue. Can you investigate a bit further and see what events are emitted and in what order? Thank you. |
Ping @helloIAmPau. |
Closing as I think the issue happens due to a missing Please reopen if this is not the case. |
Thank you, I'll check the issue.
On Sat, Nov 4, 2017, 12:54 PM Luigi Pinca ***@***.***> wrote:
Closed #1201 <#1201>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1201 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-h2LBCl-ksOv390qGVEIm8b9M0ubvgks5szFBpgaJpZM4PRD1H>
.
--
P.
|
Hey @lpinca I just ran into this today on 3.3.2. The remote server gave a ECONNRESET at a bad time which resulted in this error being thrown (and then swallowing the
|
@connor4312 that "Uncaught error" looks suspicious, are you using |
The "uncaught error" is our own message! We use uncaughtException in order to log telemetry about the error to Sentry. It seems odd that that would be incompatible with this library--would that be considered a bug in ws? |
@connor4312 do you have an If so and the listener isn't called then the issue is Node.js as we are forwarding it from If not and you use |
See also #1229 (comment) if you didn't already. |
Hi all,
when I try to connect to an invalid host (one who does not listen for WebSocket connections) I get the following exception I can't handle in any way:
It looks to be an invalid access to
this._req
variable.In this merge-request, I just added a check that should fix the issue.
I hope it will be helpful.