Invalid WebSocket frame: invalid UTF-8 sequence
Received this unhandled rejection today. I think it bad data from Discord, but I wasn't able to track what the data actually looked like. FWIW I also have
zlib-sync
enabled
Versions:
node: v22.7
discord.js: 14.16.0-dev.1724544741-437437461
@discordjs/ws: 1.1.14 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Possibly related to latest nodejs release https://github.com/nodejs/node/issues/54543 although this is the first time it's happened to me
GitHub
UTF+8 encodings are broken · Issue #54543 · nodejs/node
Version 22.7.0 Platform Linux api-deployment-694785c9f5-8dd8j 5.10.223-211.872.amzn2.x86_64 #1 SMP Mon Jul 29 19:52:29 UTC 2024 x86_64 GNU/Linux Subsystem No response What steps will reproduce the ...
Yep
I've also gotten
DiscordAPIError[50109]: The request body contains invalid JSON.
, probably the same issuethere's also https://github.com/nodejs/node/issues/54521
GitHub
Buffer.from() output breaks after optimizing in nodejs 22.7 · Issue...
Version v22.7.0 Platform Darwin moe.fritz.box 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:13:18 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6030 arm64 Subsystem Buffer What steps will rep...