I have a hunch itās some Nostr client using forcing compression and that is incompatible with Nostream.
To relay operators running #nostream: Are you getting those "RSV1 must be clear" errors as well?
I had those errors multiple times a day and had to manually restart the server.
https://github.com/Cameri/nostream/issues/256
#[1]
Discussion
What debug level would you suggest to track it down? There is an ENV variable, so DEBUG=DEBUG? Or true false, what does it expect?
The error is clear there, thereās no need to track down. Thereās a client forcefully sending compressed websocket frames and Nostream relays donāt like it. Nostream negotiates what websocket extensions and features are available, and compression is not. But thereās a Nostr client that just sends compressed websocket frames anyways.
Okay, I see. But maybe it is possible to find out which npub is causing it or which client it is?
In any case nostream should not die in such a case. But I suppose this happens inside the ws library, so difficult to fix for your, right?
#[3]ā Can you have a look at this nostream issue, please? It seems a request sent by Damus is causing nostream to crash: