Error: Request aborted manually

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
12 Replies
Favna
Favna2y ago
@kyra @Vladdy
Solution
vladdy
vladdy2y ago
thats literally what abortAll does
vladdy
vladdy2y ago
aborts all requests manually
kyra
kyra2y ago
^
maksi
maksi2y ago
But is it supposed to throw an error?
kyra
kyra2y ago
Yes
maksi
maksi2y ago
How do I stop requests without an error?
kyra
kyra2y ago
Cancellable requests throw an error when they're cancelled fetch does that, all of .NET does that, and so on
maksi
maksi2y ago
so what is the best practice when I want to cancel requests but don't want an error
Favna
Favna2y ago
try/catch im guessing... idk async-queue
maksi
maksi2y ago
alright, thanks for the help!
kyra
kyra2y ago
You already have a try/finally, so just add a catch clause
Want results from more Discord servers?
Add your server