@discordjs/rest request gets AbortError in Deno CLI
I'm building a Discord bot using
@discordjs/rest
inside a Deno project (via npm module).
When I try to start the bot, the request to Discord API fails with this error:
AbortError: The signal has been aborted
at Timeout._onTimeout (file:///…/@discordjs/rest/dist/index.js:701:47)
I made sure the bot token is valid. It seems like the HTTP request is being aborted by Deno itself?
- Running on Windows
- Using Deno CLI to execute the project
- Using fetch via @discordjs/rest
to POST to Discord
Is there any special --allow-net
or other permission required in Deno to allow this to work? Or some compatibility issue with Discord's REST calls?
Any advice would be appreciated.🙏
0 Replies