-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shard 0's process exited before its Client became ready. #5364
Comments
similar error here |
Started getting this also |
i have the error |
This error occurs when the spawned process (the shard), died for whatever reason before its client emitted ready. If it crashed due to an error, it'll be printed to stderr as usual before exiting (so above that error). It would be helpful if you could update your reproducible sample to be minimal too. Without the command and event handling part, as that's not discord.js. (While still making sure the reported behavior is still happening!) On an unrelated note: There is no |
I also got this error on master branch but not latest version! |
This was troubling me for quite some time. In order to catch these types of errors, or errors that occur during respawn, you must add an error event listener to the shard as it's being created:
This should prevent the uncaught error in the parent process. If |
Are you able to reproduce this issue with discord.js v13.3.1? I'm rewriting the sharder so it'd be helpful to know if the issue still persists. |
I have absolutely no clue, but I'll try it when I have some free time and notify you with the results |
Does anyone know how to fix this? |
If this issue continues to exist, please open a new one. |
Please describe the problem you are having in as much detail as possible:
I start the bot, when it starts using the ShardingManaer i get this error.
then after it crashes with no other data, somethimes i get this
Include a reproducible code sample here, if possible:
Sharding Manager:
index file:
Further details:
Relevant client options:
The text was updated successfully, but these errors were encountered: