#self.onError(new RequestAbortedError())

4 messages · Page 1 of 1 (latest)

unkempt ermine
#

self.onError(new RequestAbortedError())
^

RequestAbortedError [AbortError]: Request aborted
at abort (/Users/shayuxuan/Desktop/discord_test/node_modules/undici/lib/api/abort-signal.js:10:18)
at self.<computed> (/Users/shayuxuan/Desktop/discord_test/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20)
at EventTarget.dispatchEvent (node:internal/event_target:673:26)
at abortSignal (node:internal/abort_controller:308:10)
at AbortController.abort (node:internal/abort_controller:338:5)
at Timeout.<anonymous> (/Users/shayuxuan/Desktop/discord_test/node_modules/@discordjs/rest/dist/index.js:521:73)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7) {
code: 'UND_ERR_ABORTED'
}

Node.js v18.12.0

bright mist
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

harsh lodgeBOT
#

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.

unkempt ermine
#

“In case of a slow connection, the restRequestTimeout option in ClientOptions can be increased to prevent future AbortErrors.” Is there code I can look at?