Client disconnects after ready, takes 1-2 minutes to reconnect every time
The full debug log is attached below
After restarting my Bot I get a ready, then all shards seemingly disconnect and after 1-2 minutes reconnect
Is there a simple answer to this behavior, like "it's normal on some clients" or "definitely caused by x"?
Just wanna see if there's a known answer before I start taking my code apart and exhausting my daily logins.
Comprehensive order of events as outlined by the debug log:
- Ready
- Shards send the first heartbeat
- Shards Destroyed
- "Connection status during destroy"
- Connecting to WS
- Waiting for Hello
- Reconnect
- Preparing Heartbeat
- Identifying
- Waiting for ready
- Ready
- Heartbeats start
Node ver: 21.2.0
Djs Ver: 14.14.1
2 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!
the numbers are ms since startup starting at
0 [WS => Shard 0] First heartbeat sent,
Alr so no easy solution, thank you. I'll start taking apart my ready event