-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Debugging connection closed on 1006 #165
Comments
Looking at the code, it seems like this can only happen by Broken/ClosedResourceError. ( |
I'm getting this error as well, python 3.8 on linux, trio_websocket version 0.11.1 installed via pip. I only get this error when attempting to use an SSL context. Plain sockets work fine. |
I ran into the same issue. It seems to happen when there's an SSL error during the initial handshake. For me the hostnames were not valid. Looking around I found that the error is caught inside the Inside the I don't know if there's a clean way to catch the exception in the Changing what what your SSL context verifies during the handshake is a workaround. Although it is not ideal. |
I've got a client of an internal tool who runs into ABNORMAL_CLOSURE / code=1006; and it's providing difficult to reproduce other than on his machine.
The debug log pattern is:
I'll continue to investigate, but it would be very useful if we could eliminate any reason-lacking 1006 codes; for example knowing if it's a broken resource error vs. a client bug.
The text was updated successfully, but these errors were encountered: