AbortError

Sometimes i get this error message, i want to know why this error occurs and how can i solve this
AbortError: Request aborted
at RequestHandler.abort (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/client.js:1391:44)
at abort (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/api/abort-signal.js:8:10)
at self.<computed> (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:737:20)
at EventTarget.dispatchEvent (node:internal/event_target:679:26)
at abortSignal (node:internal/abort_controller:314:10)
at AbortController.abort (node:internal/abort_controller:344:5)
at Timeout.<anonymous> (/home/container/node_modules/@discordjs/rest/dist/index.js:637:47)
at listOnTimeout (node:internal/timers:569:17)
at p...
AbortError: Request aborted
at RequestHandler.abort (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/client.js:1391:44)
at abort (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/api/abort-signal.js:8:10)
at self.<computed> (/home/container/node_modules/@discordjs/rest/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:737:20)
at EventTarget.dispatchEvent (node:internal/event_target:679:26)
at abortSignal (node:internal/abort_controller:314:10)
at AbortController.abort (node:internal/abort_controller:344:5)
at Timeout.<anonymous> (/home/container/node_modules/@discordjs/rest/dist/index.js:637:47)
at listOnTimeout (node:internal/timers:569:17)
at p...
2 Replies
d.js toolkit
d.js toolkit16mo 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 docs16mo 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.
Want results from more Discord servers?
Add your server