Abort error ever since djs v14. Extended timeout but that hasn’t helped.

I have to keep rebooting my server as well as the bot cause it randomly hits the timeout error.
codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:10
self.onError(new RequestAbortedError())
^

RequestAbortedError [AbortError]: Request aborted
at abort (/root/codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:10:18)
at AbortSignal.self.<computed> (/root/codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:29:5)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
at AbortSignal.dispatchEvent (node:internal/event_target:636:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:323:5)
at Timeout.<anonymous> (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:515:73)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'UND_ERR_ABORTED'
}
codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:10
self.onError(new RequestAbortedError())
^

RequestAbortedError [AbortError]: Request aborted
at abort (/root/codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:10:18)
at AbortSignal.self.<computed> (/root/codinghelp-bot/node_modules/undici/lib/api/abort-signal.js:29:5)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:694:20)
at AbortSignal.dispatchEvent (node:internal/event_target:636:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:323:5)
at Timeout.<anonymous> (/root/codinghelp-bot/node_modules/discord.js/node_modules/@discordjs/rest/dist/index.js:515:73)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'UND_ERR_ABORTED'
}
This is incredibly annoying and definitely a bug cause I extended the timeout, yet it still happens, just takes longer to happen.
14 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y 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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Erin
Erin2y ago
Anyone have any ideas on this? I can share code when I get home
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Erin
Erin2y ago
So an issue with my VPS? Is it? ? Does anyone know and can explain this to me? Hello?
Erin
Erin2y ago
That’s part of my index.js and the second screenshot is where my bot stops when booting up.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Erin
Erin2y ago
Didn’t realize I did I’ll fix that but that isn’t my issue as it as worked for months with that and now all of a sudden it isn’t coming online
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Erin
Erin2y ago
Erin
Erin2y ago
Same error as what is in the original content of this post if you scroll up
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Erin
Erin2y ago
I can send the whole file in a few min https://sourceb.in/IIguftxTdB @skull.emoji I appreciate your help