So yeah, just starting my bot, and then this happens.
[ERROR] (node:5606) UnhandledPromiseRejectionWarning: DiscordAPIError
at ClientManager.connectToWebSocket (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/ClientManager.js:42:29)
at Promise (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/Client.js:238:20)
at new Promise (<anonymous>)
at Client.login (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/Client.js:235:12)
I’ve seen a lot other ones, so could anyone please help me? Thanks.
DiscordAPIError
at ClientManager.connectToWebSocket (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/ClientManager.js:42:29)
at Promise (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/Client.js:238:20)
at new Promise (<anonymous>)
at Client.login (/rbd/pnpm-volume/e465299b-d3b0-41a0-8d8a-587bdce5a220/node_modules/.github.com/discordjs/discord.js/8a6d029c006b5a107363d3787ff60bcccda2a984/node_modules/discord.js/src/client/Client.js:235:12)
at Object.<anonymous> (/app/bot.js:478:8)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
Thanks, but I need the full error message including the section before the DiscordAPIError part. It’s perhaps easiest if you let us know the project name and we can take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.
I don’t understand the cause of the error, but it’s specific to the development version of discord.js you’re using so I’d flag it to their development team.
Ok, we’ll test for that but it’s not the typical error message you get for a banned IP. But perhaps the library isn’t handling it correctly. Will get back to you.