Undici UND_ERR_ABORTED when fetching channel messages

Simply trying to fetch the most recent message in a channel when the error occurs. Am noticing Discord is being a little slow at the moment with things like deleting message, loading channel etc.. but not sure if this could be related • discord.js@14.1.1 • v16.16.0
await message.channel.messages.fetch({ limit: 1 }).then(async fetched => {...
await message.channel.messages.fetch({ limit: 1 }).then(async fetched => {...
C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\client.js:1333
errorRequest(client, request, err || new RequestAbortedError())
^

RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\client.js:1333:44)
at abort (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\api\abort-signal.js:8:10)
at AbortSignal.self.<computed> (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\api\abort-signal.js:29:5)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
at AbortSignal.dispatchEvent (node:internal/event_target:585:26)
at abortSignal (node:internal/abort_controller:284:10)
at AbortController.abort (node:internal/abort_controller:315:5)
at Timeout.<anonymous> (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:156:49)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'UND_ERR_ABORTED'
}
C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\client.js:1333
errorRequest(client, request, err || new RequestAbortedError())
^

RequestAbortedError [AbortError]: Request aborted
at RequestHandler.abort (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\client.js:1333:44)
at abort (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\api\abort-signal.js:8:10)
at AbortSignal.self.<computed> (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\undici\lib\api\abort-signal.js:29:5)
at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:643:20)
at AbortSignal.dispatchEvent (node:internal/event_target:585:26)
at abortSignal (node:internal/abort_controller:284:10)
at AbortController.abort (node:internal/abort_controller:315:5)
at Timeout.<anonymous> (C:\Users\proba\OneDrive\Desktop\4DC\node_modules\discord.js\node_modules\@discordjs\rest\dist\lib\handlers\SequentialHandler.cjs:156:49)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7) {
code: 'UND_ERR_ABORTED'
}
1 Reply
d.js docs
d.js docs2y ago
• 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.