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