-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after upgrade 3.x, multi error: Uncaught (in promise) DOMException: The user aborted a request. #6769
Comments
I add singal in fetchOptions, and fix it. const abortController = new AbortController();
// xxx
fetchOptions: {
mode: "cors",
signal: abortController.signal,
},
// xxx |
I had the same issue. Not really understand what should I add with the "signal", could you provide more details? Thanks! |
@Tuicaodan I also facing the same issue |
@cescoferraro I was able to fix the issue by adding this in the "apollo config section". Here is my code of this section:
|
@Tuicaodan thanks! I will give it a try |
it works thanks @Tuicaodan |
Just a quick note in case someone encounters the same issue. In our case, the issue comes from LogRocket that whenever a query completes, Apollo sends an abort signal via the AbortControler during the cleanup process in order to cancel all in-flight queries. However, LogRocket wraps the global Passing I created an issue on LogRocket's repo: https://github.com/LogRocket/logrocket/issues/34. If you are not using LogRocket, can also follow the issue to make sure you do catch and ignore any abort exceptions. |
Intended outcome:
no error
Actual outcome:
in chrome console, always throw error:
Uncaught (in promise) DOMException: The user aborted a request.
How to reproduce the issue:
I did not find a solution. so i open this issue.
my conf:
polyfill:
Versions
The text was updated successfully, but these errors were encountered: