Sharding not working anymore out of nowhere
Out of nowhere my bot isn't starting anymore, throwing a
ShardingReadyDied
every time after trying to start the seventh shard. I did not change anything with the host the bot is running on. The complete error looks like this:
4 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!ShardingManager.js
weird enough discord does not want to send the message with the bot.js, here it is in a pastebin https://pastebin.com/uRaweVq7
Pastebin
const fs = require('node:fs');const path = require('node:path');con...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
what is weird though is that the bot worked completely fine before but now is crashing every time due to this error. I did not change anything at all.
well this only pushes the error back to a different shard
I just removed the totalshard limit so it automatically adjusts the number of shards and am receiving the same error as before, at a different shard tho
it's shard 44 now
ShardingManager.js
Error
Guilds is the number of guilds the bot is in, with limit I can adjust the total number of guilds per shard. I actually got it to work now with a higher guild number. I suspect the problem was too many guilds on one shard, however that wouldn't explain why auto sharding wasn't working.
it's a bit of a workaround, but it's working now again at least
Well if listed in app directory it shows the amount of guilds there
there isn't actually
I could try again, but since it's working now I wouldn't like to shut down the bot again and put it on auto
alright I will try
actually getting a completely new error now: