"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:
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....
Jump to solution
3 Replies
Percy
Percy7mo ago
Project ID: 18441ba3-c37d-4ea7-a116-627d01842543
<hmmhmmhm/>
<hmmhmmhm/>OP7mo ago
18441ba3-c37d-4ea7-a116-627d01842543
Solution
<hmmhmmhm/>
<hmmhmmhm/>7mo ago
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)
Want results from more Discord servers?
Add your server