Discord.js: Error: RSV2 and RSV3 must be clear

Created on 9 Aug 2017  Â·  13Comments  Â·  Source: discordjs/discord.js

Please describe the problem you are having in as much detail as possible:
I don't exactly know how to explain it, but I also have no example code, because I don't know what is going on. It just started happening as soon as I tried to use disabledEvents on the client constructor, but it threw this error. I removed it and it's still giving me the same error. I moved the bot to my VPS and same error. It doesn't seem to be a port issue, because this is the only bot running. Anyone else having this error?

Include a reproducible code sample here, if possible:


Further details:

  • discord.js version: 12.0.0
  • node.js version: 8.2.1
  • Operating system: Debian 8.4
  • Priority this issue should have – please be realistic and elaborate if possible: Extremely High

  • [ ] I found this issue while running code on a __user account__
  • [x] I have also tested the issue on latest master, commit hash: 54ff8ce
dependencies gateway bug

Most helpful comment

@devsnek I just did npm install uws, and restarted the bot. It was successful at login and did everything correctly.

All 13 comments

weeee we aren't sure how to fix this either. we believe it to be an upstream bug with ws, but we aren't sure. please try reproducing with uws and with/without bufferutil installed.

@devsnek That seemed to fix the issue, thanks!

@PassTheMayo can you be specific on what fixed the issue, we aren't sure here how to fix it

@devsnek I just did npm install uws, and restarted the bot. It was successful at login and did everything correctly.

Hmm thanks! I was having this issue too but was just ignoring it.

@jaipradeesh That explains nothing. Plus we already got this resolved anyways, thanks.

   RSV1, RSV2, RSV3:  1 bit each

      MUST be 0 unless an extension is negotiated that defines meanings
      for non-zero values.  If a nonzero value is received and none of
      the negotiated extensions defines the meaning of such a nonzero
      value, the receiving endpoint MUST _Fail the WebSocket
      Connection_.

This error means that the client is sending a compressed frame but the permessage-deflate extension is disabled.

@jaipradeesh - Your saying this, but I'm unsure what you mean.

This error means that the client is sending a compressed frame but the permessage-deflate extension is disabled.

I've got a self made bot, which connects to a remote API, and I just got an error saying Error: RSV2 and RSV3 must be clear as well. I'm using the regular node ws lib for the websocket, so I'm not sure how I as a client am wrong in sending a compressed frame.

Have you got any tips on debugging this?

I'm still getting this error, and when its a fatal one so my script crashes

@kramer65 @lukeeey As PassTheMayo did, just install uws and it should work.

Don't you think I did that

I'm getting this when I stream data from an arduino IoT nano, it streams for about a few seconds, data is good, then it hits this error. Since it sends good data prior to this error, I don't believe the error message is accurate, otherwise the error message would show up in the first message(s). It's a bit of a showstopper, cannot seem to stream websocket data using ws and uws is not a realistic option due to it's various issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LLamaFTL picture LLamaFTL  Â·  3Comments

Dmitry221060 picture Dmitry221060  Â·  3Comments

tiritto picture tiritto  Â·  3Comments

iCrawl picture iCrawl  Â·  3Comments

smchase picture smchase  Â·  3Comments