How to prevent the AbortError: signal is aborted without reason
I am getting a AbortError: signal is aborted without reason. In the past I believe I was able to call abort on the signal even after fetch returned but now I'm getting this error. Maybe it is because I'm calling it twice? Is there a way to prevent this error? I've checked if signal.aborted is true but that would be checking if it was aborted not if the request was completed. Is there a property with the controller or signal that I can use to check if the fetch is done or can I simply catch the error (since it seems like it's more of a warning) and discard it? class MyClass { async send(url) {
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.