Start Error: "The user aborted a request" #9804
-
Which package is this bug report for?rest Issue descriptionHey 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: Code sampleNode.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]: 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: [] }
} Versionsdiscord.js ^13.15.1 Issue priorityHigh (immediate attention needed) Which partials do you have configured?Not applicable Which gateway intents are you subscribing to?Not applicable I have tested this issue on a development releaseNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That error usually occurs when a request takes longer than the specified timeout which is 15 seconds by default, so it was aborted not to lock up the request handler. This can be because of a server error on Discord's side or just a slow connection. If you have a slow connection, you can increase the |
Beta Was this translation helpful? Give feedback.
That error usually occurs when a request takes longer than the specified timeout which is 15 seconds by default, so it was aborted not to lock up the request handler. This can be because of a server error on Discord's side or just a slow connection. If you have a slow connection, you can increase the
timeout
in the RESTOptions when constructing the client.