Hey y’all our original mega-thread for Discord bans was getting a little long in the tooth, so here’s a new one.
If you’re encountering problems with your bot’s connection to the Discord API it may be because Discord has banned one or more of Glitch’s project host machines. To resolve this, Glitch will shut down that host and migrate all of its projects to new hosts. This problem is often accompanied by the message “Something took too long to do”.
To determine if your project is affected by this problem, you can open your project’s console and type curl -I https://discordapp.com/api/v7/gateway. If you see something like HTTP 429 in the response that means that your project is on a banned host.
If you believe your project’s host is banned, reply with your project name and Glitch staff will take a look.
UPDATE
I just wanted to clarify so everyone knows what to expect here.
We check for banned hosts several times a day, and retire any that we find as we find them as a matter of course. Posting in this thread will let us know that a host has been banned if we haven’t caught it, and we’ll get to migrating it as soon as we can, but we’ll typically only respond here when something out of the ordinary is going on (like when Discord bans a whole bunch of our hosts).
(node:863) UnhandledPromiseRejectionWarning: Error: Something took too long to do.
at timeout.client.setTimeout (/rbd/pnpm-volume/20ee7fcb-c9fa-44af-87eb-bf280cd39ecc/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/ClientManager.js:40:57)
at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/20ee7fcb-c9fa-44af-87eb-bf280cd39ecc/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/Client.js:436:7)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
(node:863) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
(node:863) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
How do I fix this? My bot does not want to connect, I already tested token and other things, but nothing solved.
Since earlier today one of my discord bots doesn’t seem to go online anymore (project name is atlas) while giving this error message in the console
Error: Something took too long to do.
7:40 PM
at timeout.client.setTimeout (/rbd/pnpm-volume/f3f68616-6138-4c89-ad88-f22fed730b2b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/ClientManager.js:40:57)
7:40 PM
at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/f3f68616-6138-4c89-ad88-f22fed730b2b/node_modules/.registry.npmjs.org/discord.js/11.5.1/node_modules/discord.js/src/client/Client.js:436:7)
7:40 PM
at ontimeout (timers.js:498:11)
7:40 PM
at tryOnTimeout (timers.js:323:5)
7:40 PM
at Timer.listOnTimeout (timers.js:290:5)
Hello everyone, I have a problem with my project that runs a Discord bot using discord.js lib.
Project name is hytalemods (private)
In console returns: