Random disconnect from websocket

I have periodically reconnecting to websocket every 1-2 hours and I do not know how to fix it. I thought it was my internet problem and I ended up moving the bot to Microsoft Azure and it has the same problem. These disconnects disturb me, because it stops the audio player
10 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
AlexInCube
AlexInCubeOP2y ago
I even created a bot where there is only client creation and listening to shardResume, still this problem remains. So the problem is not in my code
d.js docs
d.js docs2y ago
Tag suggestion for @alexincube: Please add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
client
.on("debug", console.log)
.on("warn", console.log)
client
.on("debug", console.log)
.on("warn", console.log)
• Note: if you initialize your Client as bot or other identifiers you need to use these instead of client • If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebin
AlexInCube
AlexInCubeOP2y ago
okay, i am try to use this
AlexInCube
AlexInCubeOP2y ago
@idris1401
AlexInCube
AlexInCubeOP2y ago
when bot disconnected, i get this log
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
AlexInCube
AlexInCubeOP2y ago
14.9.0 i use the latest version of all packages
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
AlexInCube
AlexInCubeOP2y ago
i am trying set dns to 8.8.8.8 and 4.4.4.4, but i have the same problem i found the source of problem i run bot in docker container, i get unstable network when i setup bot on Ubuntu without docker, my connection is stable
Want results from more Discord servers?
Add your server