-
Notifications
You must be signed in to change notification settings - Fork 195
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
[BUG] uncaught error: RangeError: Invalid WebSocket frame: RSV1 must be clear #256
Comments
seeing this as well. Comes with these types of requests in nginx access.log: |
Yes, I have the same lines always at the same time, there is an error.
And I just found my own IP in the NGINX logs, while I was only running Damus at that time. |
I just tried to debug it with Damus in XCode: I was able to create this RSV1 error within nostream a few times, but I could not find out in which circumstances it happens. Sometimes it does, sometimes it does not. And it never resulted in crashing nostream, only those uncaught errors occurred. But when it happens, it happens directly after Damus calls socket.connect() in RelayConnection:53. Sorry not to be more precise, I have never used XCode before, still learning. |
Amazing. Are there any options passed to that socket or socket.connect function? According to the node ws library this error occurs when the client and server negotiate ws extensions, the server lets the client know it doesn't support compression but the client sends compressed frames anyways |
The socket is created using the following line: I have never programmed Swift, but "compressionHandler: .none" indicates no compression to me! |
Can also confirm this - using latest version of nostream and getting this error on my VPS all the time - although it does not seem to has a severe impact? Relay runs smooth so far I can see.... |
My nostream deployment crashes often - if I don't do a daily restart. But honestly I don't know if this error causes the crashing. Although this error is the only I see in the logs. But that does not necessarily mean the two are connected. |
Describe the bug
During the last couple of days my nostream implementation failed with an error multiple times.
I had to manually restart nostream.
When nostream crashes the following errors showed in the logs:
To Reproduce
I don't know how to reproduce it. But of course I am willing to help to track it down.
Expected behavior
No error :-)
System (please complete the following information):
Logs
No more logs before and after the stacktrace.
Additional context
Others seem to have the same problem:
#225 (comment)
The text was updated successfully, but these errors were encountered: