"Not enough sessions remaining to spawn 1 shards; only 0 remaining"?
Hi, my Discord bot running on Railway has stopped working with the above error. What should I check? I am not currently using any sharding related options.
Solution:Jump to solution
Ah... I figured out what was causing it. I'm making a note of it because I'm sure there will be someone like me later.
If you have a setting in place to automatically restart the server when something goes wrong, if it's a series of reboots, it's possible that the discord is being blocked for excessive requests.
After stopping the server for a while, I fixed the code that was causing the crash on the server after the time I was banned (about 30 minutes later) and rebooted it, and it worked fine....
3 Replies
Project ID:
18441ba3-c37d-4ea7-a116-627d01842543
18441ba3-c37d-4ea7-a116-627d01842543
Solution
Ah... I figured out what was causing it. I'm making a note of it because I'm sure there will be someone like me later.
If you have a setting in place to automatically restart the server when something goes wrong, if it's a series of reboots, it's possible that the discord is being blocked for excessive requests.
After stopping the server for a while, I fixed the code that was causing the crash on the server after the time I was banned (about 30 minutes later) and rebooted it, and it worked fine.
Translated with DeepL.com (free version)