shard reconnect loop
hi!
here's a portion of logs from my bot's startup progress; it's been on a reconnect loop for shards even though they're ready. I was wondering if this is because of the "unavailableGuilds" thing, never seen this error before. some shards start with unavailableGuilds: 0 and the rest are as you see here. is this a common issue? I've also provided some debug logs that show the errors right before the reconnect loops. if you need any other information from the bot, i'll provide it!
(p.s this bot is on a custom clustering package but i just wanted to know if this was an error seen before due to discord.js reasons)
djs v14.9.3
nodeVersion v22.14.0
10 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 OPdjs v14.9.3?
14.19.3?
Yes sorry
Looks like some kind of discord problem to me. Or your hosting provider is having some network issues
I don't know maybe try with 14.20 djs. But it is unlikely to change anything
how many servers is your bot on? (are you bigbot sharding?)
but yes, try updating (minor version jump, so non-breaking) and if that doesn't help, consider opening a github issue with the debugging information you provided here
about 500k; 16x bigbot sharding
it works with the same version before the rewrite, unsure as to why; just wanted to find out if there are any known causes to this error so that i can figure it out and fix it
let me try out your suggestions too
mmmm, fixed it.
i had a duplicate event handler but it was just a logger so i didn't think it would make mucch of a difference. secondly, i updated the version and i tried it a day after. one of these caused it
thanks souji and patryk
you should be seeing a new channel #big-apps - if you can reproduce issues with shard/ws connections, please let us know! that one is actively read by the devs implementing those things for the library
oh damn, never knew that existed; ty for the role
appreciate it
Like what we do and want to put some money behind it? Donate to discord.js and rep your support with a role on our support server:
- OpenCollective: Use /claim-sponsor and provide your OC slug (Settings > Info > URL slug)
- GitHub Sponsors:
1) Create a private gist
2) Include your Discord user ID (
348607796335607817)
3) Include your Transaction id or screenshot of the donation
4) Send the link to the gist to @crawl (crawl) via direct message