When running a discord bot and logging in via token it’ll work successfully if run locally. The issue is when I run the exact same project using glitch it gets stuck at client.login(token)
. It has run perfectly fine for the past couple months, and suddenly without changing anything this issue has arisen.
The error I get after it times out on glitch is:
(node:12404) UnhandledPromiseRejectionWarning: Error: Something took too long to do.
at timeout.client.setTimeout (/rbd/pnpm-volume/f0656776-473c-46c8-ae14-dc0a8f191872/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/ClientManager.js:40:57)
at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/f0656776-473c-46c8-ae14-dc0a8f191872/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/Client.js:433:7)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
Project is nex-discord
Any help would be much appreciated!