Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at <time>

Hello! My bot Knitting is host on a VPS (oracle free tier). I have two bot on this VPS, and the second work as excepted. Knitting won't run, and I have this error : Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at. The bot don't use sharding, because it's not on many guild. Here the full stack:
0|knitting | 2023-07-09 09:42 +00:00: Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-07-09T17:35:25.997Z
0|knitting | 2023-07-09 09:42 +00:00: at WebSocketManager.connect (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/ws/dist/index.js:1363:13)
0|knitting | 2023-07-09 09:42 +00:00: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|knitting | 2023-07-09 09:42 +00:00: at async WebSocketManager.connect (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/client/websocket/WebSocketManager.js:206:5)
0|knitting | 2023-07-09 09:42 +00:00: at async Client.login (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/client/Client.js:226:7)
0|knitting | 2023-07-09 09:42 +00:00: Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-07-09T17:35:25.997Z
0|knitting | 2023-07-09 09:42 +00:00: at WebSocketManager.connect (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/@[email protected]/node_modules/@discordjs/ws/dist/index.js:1363:13)
0|knitting | 2023-07-09 09:42 +00:00: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|knitting | 2023-07-09 09:42 +00:00: at async WebSocketManager.connect (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/client/websocket/WebSocketManager.js:206:5)
0|knitting | 2023-07-09 09:42 +00:00: at async Client.login (/home/ubuntu/DiscordThreadMember/node_modules/.pnpm/[email protected]/node_modules/discord.js/src/client/Client.js:226:7)
GitHub
GitHub - Lisandra-dev/Knitting-bot: A little discord bot write in T...
A little discord bot write in TypeScript that automatically add / remove member in thread, without pinging them! - GitHub - Lisandra-dev/Knitting-bot: A little discord bot write in TypeScript that ...
5 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.
treble/luna
treble/luna2y ago
you logged in over 1000 times, the only thing you can do is wait
Mara
MaraOP2y ago
So, when it crash, the bot try reconnecting in a loop ?
treble/luna
treble/luna2y ago
i dont know what you do, i just know that you logged in 1000 times
Mara
MaraOP2y ago
Well, seems he crash too much, I must read the log to know why. Thanks
Want results from more Discord servers?
Add your server