My glitch bot stopped working from day to day, im showing error

(node:651) UnhandledPromiseRejectionWarning: Error: Something took too long to do.

9:01 PM

at timeout.client.setTimeout (/rbd/pnpm-volume/36f76c1e-4772-4472-9ad4-35c557d3bb54/node_modules/.registry.npmjs.org/discord.js/11.6.4/node-opus@0.3.3/node_modules/discord.js/src/client/ClientManager.js:40:57)

9:01 PM

at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/36f76c1e-4772-4472-9ad4-35c557d3bb54/node_modules/.registry.npmjs.org/discord.js/11.6.4/node-opus@0.3.3/node_modules/discord.js/src/client/Client.js:436:7)

9:01 PM

at ontimeout (timers.js:498:11)

9:01 PM

at tryOnTimeout (timers.js:323:5)

9:01 PM

at Timer.listOnTimeout (timers.js:290:5)

9:01 PM

(node:651) 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)

9:01 PM

(node:651) [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. (node:651) UnhandledPromiseRejectionWarning: Error: Something took too long to do.

9:01 PM

at timeout.client.setTimeout (/rbd/pnpm-volume/36f76c1e-4772-4472-9ad4-35c557d3bb54/node_modules/.registry.npmjs.org/discord.js/11.6.4/node-opus@0.3.3/node_modules/discord.js/src/client/ClientManager.js:40:57)

9:01 PM

at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/36f76c1e-4772-4472-9ad4-35c557d3bb54/node_modules/.registry.npmjs.org/discord.js/11.6.4/node-opus@0.3.3/node_modules/discord.js/src/client/Client.js:436:7)

9:01 PM

at ontimeout (timers.js:498:11)

9:01 PM

at tryOnTimeout (timers.js:323:5)

9:01 PM

at Timer.listOnTimeout (timers.js:290:5)

9:01 PM

(node:651) 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)

9:01 PM

(node:651) [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.

This means your project is on a banned host, if you want to change your host I recommend posting in the discord ban mega-thread thread.

2 Likes

why my project got banned? how do I know?

It’s not necessarily your fault. Due to how Glitch works your project might be hosted on the same server as another user’s project. So if someone else receives a Discord API ban, so will you. There’s no need to worry though, unless you personally break the ToS your bot and your account will remain OK!

2 Likes

and last question, how long it takes to solve the “problem”?

I’ve never experienced the issue myself so I haven’t gotten around to figuring this out. But I estimate it’ll take around 24-48 business hours.

2 Likes

Thanks much. If it not will be solved in 1 week i will tell here.

Uninstalling node-opus worked, but the bot is not connecting, he uses discord-script (https://www.npmjs.com/package/discord-script)

We just fixed the connection problem by just remixing the project.

2 Likes

That does the trick sometimes :sweat_smile:

1 Like

May make stuff worst as that container may get banned.

Remix the project