Start Error: "The user aborted a request" #9804

Hey guys. From yesterday to today, my bot started having problems starting. I read about it and maybe it's because Discord is blocking the bot. My doubt about this is because my bot has always done the same activity, that is, nothing has changed. Does anyone have any light on the issue and how to solve it? Following error: 4HTTPError [AbortError]: Node.js v18.16.1 B/home/node/node_modules/discord.js/src/rest/RequestHandler.js:201 [ throw new HTTPError(error.message, error.constructor.name, error.status, request); ^ 4HTTPError [AbortError]: The user aborted a request. e at RequestHandler.execute (/home/node/node_modules/discord.js/src/rest/RequestHandler.js:201:15) R at process.processTicksAndRejections (node:internal/process/task_queues:95:5) g at async RequestHandler.push (/home/node/node_modules/discord.js/src/rest/RequestHandler.js:51:14) z at async WebSocketManager.connect (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:134:9) \ at async Client.login (/home/node/node_modules/discord.js/src/client/Client.js:254:7) { code: 500, method: 'get', path: '/gateway/bot', . requestData: { json: undefined, files: [] } }. e at RequestHandler.execute (/home/node/node_modules/discord.js/src/rest/RequestHandler.js:201:15) R at process.processTicksAndRejections (node:internal/process/task_queues:95:5) g at async RequestHandler.push (/home/node/node_modules/discord.js/src/rest/RequestHandler.js:51:14) z at async WebSocketManager.connect (/home/node/node_modules/discord.js/src/client/websocket/WebSocketManager.js:134:9) \ at async Client.login (/home/node/node_modules/discord.js/src/client/Client.js:254:7) { code: 500, method: 'get', path: '/gateway/bot', . requestData: { json: undefined, files: [] } }
6 Replies
d.js toolkit
d.js toolkit•13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs•13mo ago
AbortError: The user aborted a request. A request took longer than the specified restRequestTimeout (15 seconds default), and was aborted to not lock up the request handler. - This can be caused by an internal server error on Discord's side, or just a slow connection. - In case of a slow connection, the restRequestTimeout option in ClientOptions can be increased to prevent future AbortErrors.
h4ck1ng
h4ck1ng•13mo ago
THis link is from discord.js v.14. My discord.js is v.13.
Toast
Toast•13mo ago
same thing still applies, i dont see the difference in ClientOptions for v13/14
h4ck1ng
h4ck1ng•13mo ago
I am not finding restRequestTimeout option in v.13 😅
duck
duck•13mo ago
the tag is actually a little wonky and could use an update, as the actual text of the tag is for v13 while the links point to v14 docs the v13 docs for ClientOptions (which includes the restRequestTimeout property) are here just to elaborate for any future readers: in v14, the client option rest determines the options passed to the REST client from @discordjs/rest these options contain the timeout property e.g. rest: { timeout: 30_000 }
Want results from more Discord servers?
Add your server