Shard reconnect issue
Hello,
I have a problem that when I listen on the shard 'reconnect' event, I get the log that a reconnect has been triggered on the shard with ID X.
Then another event comes 20 seconds later and then another event comes half a minute later - and they are for the same shard id.
Meanwhile on the shard 'ready' event no log comes that shard X is ready.
What could be the reason for this? I have read in several posts/comments that discord triggers at any time between 15m-4h to validate the shard, but here there is one (actually a few) shard with several 'reconnect' events.
Did anyone else has this issue?
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!
- ✅
Marked as resolved by staffIm using
-
"discord.js": "^14.8.0"
- "discord-hybrid-sharding": "^2.1.4"
for create clusters and sharding
- "discordx": "^11.4.0"
for create new discord client
- 19.8.1 Node.js version
any related log wont help i think because im listening on this event:
and here is not much to log
the discord-hybrid-sharding cluster manager looks like:
and the discordx Client looks like:
i will try it, thank you!
thank you very much Qjuh, that was the main reason for the reconnection issue! We upgraded to 14.14.1 and it seems to work fine.