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
• 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.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
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.
• 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 | hastebinokay, i am try to use this
@idris1401
when bot disconnected, i get this log
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
14.9.0
i use the latest version of all packages
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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