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

command: ts-node-dev --respawn --transpile-only main.ts when I start the command I am getting this error when authenticating the bot with discord, with <Client>.login, I searched about this error, and what I saw this happens with those who use shardmanager, but I do not use it... I imagine that maybe it's the ts-node-dev auto-restart, how can I prevent that?
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-26T13:00:44.213Z
at WebSocketManager.connect (E:\bot\node_modules\@discordjs\ws\src\ws\WebSocketManager.ts:298:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at WebSocketManager.connect (E:\bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:206:5)
at Bot.login (E:\bot\node_modules\discord.js\src\client\Client.js:226:7)
[ERROR] 23:33:14 Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-26T13:00:44.213Z
Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-26T13:00:44.213Z
at WebSocketManager.connect (E:\bot\node_modules\@discordjs\ws\src\ws\WebSocketManager.ts:298:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at WebSocketManager.connect (E:\bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:206:5)
at Bot.login (E:\bot\node_modules\discord.js\src\client\Client.js:226:7)
[ERROR] 23:33:14 Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-26T13:00:44.213Z
2 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server