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

Did you find this page helpful?