"Not enough sessions remaining to spawn 1 shards; only 0 remaining"?

hmmhmmhmPRO

a year ago

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.

0 Replies

hmmhmmhmPRO

a year ago

18441ba3-c37d-4ea7-a116-627d01842543


hmmhmmhmPRO

a year ago

1241909032747270100


hmmhmmhmPRO

a year 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)