Error: Request aborted manually

Mmaksi1/27/2023
Hi, sorry if the tag is wrong, I'm not really sure what all of them mean. Anyways, I use the @sapphire/async-queue package and I came across an issue where calling the abortAll method led to a "Request aborted manually"-error. Attached is the stack, in case that helps.
Solution:
thats literally what abortAll does
Jump to solution
FFavna1/27/2023
@kyra @Vladdy
Solution
Vvladdy1/27/2023
thats literally what abortAll does
Vvladdy1/27/2023
aborts all requests manually
Kkyra1/27/2023
^
Mmaksi1/27/2023
But is it supposed to throw an error?
Kkyra1/27/2023
Yes
Mmaksi1/27/2023
How do I stop requests without an error?
Kkyra1/27/2023
Cancellable requests throw an error when they're cancelled fetch does that, all of .NET does that, and so on
Mmaksi1/27/2023
so what is the best practice when I want to cancel requests but don't want an error
FFavna1/27/2023
try/catch im guessing... idk async-queue
Mmaksi1/27/2023
alright, thanks for the help!
Kkyra1/27/2023
You already have a try/finally, so just add a catch clause

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
A compatible class export was not found.When use HMR and edit files It always sends an error, no matter what file is being edited: ```consoIs it possible to use discord.js-light with Sapphire?The title is self-explanatory, I think.Is Sapph.xyz bot related to this project/community?Asking because of the name resemblence and i dont seem to find it in the server's bot list - is it iTyping the Err generic of Result to be emptySorry if this is a basic Typescript question! Is it possible to type a function's output so that I cAdded new options to slash command; not being reflected on discord```ts registry.registerChatInputCommand((builder) => builder // .setName(this.name) Handle Crash on DiscordAPIError[50001]: Missing AccessThe scenario that causes this crash is the bot tries sending a message to a channel it doesn't have "dm_permissions: false" dont workI was trying to make the slash commands not visible in the md but it doesn't work for me, can you teHow do i make an entire array an autocomplete?I have a huge array and I want it to be autocomplete for a command how would i go about implementingGet content as resolved tagsCouldn't figure out how to title it, but I'd like to take a message like `hey @<213123123> look in Error when adding a String optionHey, when using `..addStringOption` I get a error of `ExpectedValidationError > s.instance(V)`. It [SOLVED] quick question; does sapphire defer replies?does sapphire defer interaction replies? no sapphire cli just `@sapphire/framework`Invalid Form Body (or at least something like that) When the bot tries to register a new commandHello, I just started to continue on my bot. I just did a upgrade to the most recent version of discUnable to import `CommandDeniedPayload` in @sapphire/framework v4.0.2as the title says@sapphire/result error in v4After migrating to Sapphire v4 and D.js v14 and fixed all breaking changes, I've still got three errFollow announcement channelHow do I follow an announcement channel? Like ```js let announcements = client.channels.fetch("id")Slash Command with Subcommand Plugin doesnt registeringAfter i update sapphire v4 and also djs v14 the commands using subcommand plugin doesnt registering Variable slash command argument parsingIs it possible to have slash commands with a variable amount of arguments, up to perhaps 20? If not Quoted argument not consumed as single argumentI am trying the basic echo command from the guide, and finding that an argument in quotes, which is Formatting Dates```ts let ratelimit = manager.acquire(interaction.guild.id); // reply -> String `Please try again iShared handlerHow to make shared `InteractionHandler` to handle buttons and select menus together?