Does anyone know why this is happening?

The bot isnt doing anything no commands have been run seems to just randomly throw this error
RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/client.js:1391:44)
at abort (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/api/abort-signal.js:8:10)
at self.<computed> (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20)
at AbortSignal.dispatchEvent (node:internal/event_target:673:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:322:5)
at Timeout.<anonymous> (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/@discordjs/rest/dist/index.js:637:47)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7) {
code: 'UND_ERR_ABORTED'
} +0ms
RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/client.js:1391:44)
at abort (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/api/abort-signal.js:8:10)
at self.<computed> (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/undici/lib/api/abort-signal.js:29:5)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20)
at AbortSignal.dispatchEvent (node:internal/event_target:673:26)
at abortSignal (node:internal/abort_controller:292:10)
at AbortController.abort (node:internal/abort_controller:322:5)
at Timeout.<anonymous> (/home/nick/bots/discord/ManaTrelloDiscordBot/node_modules/@discordjs/rest/dist/index.js:637:47)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7) {
code: 'UND_ERR_ABORTED'
} +0ms
4 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!
nick22985
nick22985OP16mo ago
11) [email protected] /home/nick/bots/discord/ManaTrelloDiscordBot └── [email protected] 2) Happens on v20.5.1 and v18.10.0
d.js docs
d.js docs16mo ago
AbortError: The user aborted a request. A request took longer than the specified timeout (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 timeout option in RESTOptions can be increased to prevent future AbortErrors.
nick22985
nick22985OP16mo ago
this has never happened before and been happening for around 2-3 days. There was no commands run or anything in that time. It happens on multiple of my bots but not all at the same time. So one may happen a hour earlier then a hour after each or 30 min all bots are hosted at the exact same place. Is there a way to figure out if this is my connection or a internal server error? or is it just playing around with the rest options I have the debug and error logs on events on discord I get no errors or anything around there as well
[WS => Shard 0] Heartbeat acknowledged, latency of 225ms. +41s
unhandledRejection ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:182:24)
at /home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:129:46
at Immediate._onImmediate (/home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:170:9)
at process.processImmediate (node:internal/timers:471:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
} +0ms
[WS => Shard 0] Heartbeat acknowledged, latency of 225ms. +41s
[WS => Shard 0] Heartbeat acknowledged, latency of 225ms. +41s
unhandledRejection ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:182:24)
at /home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:129:46
at Immediate._onImmediate (/home/nick/bots/discord/bot/node_modules/undici/lib/core/connect.js:170:9)
at process.processImmediate (node:internal/timers:471:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
} +0ms
[WS => Shard 0] Heartbeat acknowledged, latency of 225ms. +41s
Timecodes of the last 6 recent events (also 2 note i have 2 additional bots that are not getting this at all so far)
21:16 - bot 1
20:22 - bot 2
20:06 - bot 1
12:15 - bot 2
12: 15 - bot 1
11:42 - bot 2
21:16 - bot 1
20:22 - bot 2
20:06 - bot 1
12:15 - bot 2
12: 15 - bot 1
11:42 - bot 2
Want results from more Discord servers?
Add your server