#AbortError when using @discordjs/[email protected] in Deno project (fount)

3 messages · Page 1 of 1 (latest)

charred mothBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
tribal sparrow
#

I'm trying to run a Discord bot inside a Deno-based framework (fount), but when starting the bot, I get an AbortError.

  • I'm using @discordjs/[email protected]
  • I run in a Deno environment, not Node.js
  • Internet connection is confirmed to be fine
  • The full error log is here:
POST /api/shells/discordbot/start

AbortError: The signal has been aborted
    at AbortSignal.[[SignalAbort]] (ext:deno_web/03_abort_signal.js:147:14)
    at AbortController.abort (ext:deno_web/03_abort_signal.js:304:30)
    at Timeout._onTimeout (file:///C:/fount/fount-master/node_modules/.deno/@[email protected]/node_modules/@discordjs/rest/dist/index.js:701:47)
    at cb (ext:deno_node/internal/timers.mjs:66:49)
    at callback (ext:deno_web/02_timers.js:58:7)
    at eventLoopTick (ext:core/01_core.js:213:13)

I'm not using Node, so I cannot run npm list discord.js or node -v, but I can confirm the module is correctly installed via fount's dependency manager.

Could this be a compatibility problem with @discordjs/rest + Deno?
Let me know what you need from me to reproduce this.

Thanks in advance 🙏

cunning crystalBOT
#

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.