question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing docs about aborted requests for V3

See original GitHub issue

After upgrading to Apollo Client V3 - all the unmounted queries are aborted, which throws an error

  • Message: The user aborted a request.
  • Message: Fetch is aborted
  • Message: The operation was aborted.

This is causing a lot of noise in the FE monitoring tools like raygun and etc (https://github.com/apollographql/apollo-client/issues/6769)

Looks like the docs are missing info about this change, I could not find it in either migration guide or in the docs search.

One of the users mentioned that passing the abort controller to the HTTP link helps, but has side effects. https://github.com/apollographql/apollo-client/issues/6769#issuecomment-962437610

With the abort controller passed - the requests are not aborted anymore, and no errors are thrown.

But is this the expected behavior? What is the right way to prevent abort errors to be thrown without breaking internal logic of the apollo client?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpvajdacommented, Jul 26, 2022

@bohdanbirdie 👋 I’ve added this issuer #6711 which is an umbrella issue for misc documentation updates that the team is currently iterating through. We accept PRs for our docs so if you wanted to make some improvements feel free to submit something and we can review. Thanks for being patient on this request!

0reactions
bohdanbirdiecommented, Oct 3, 2022

@bignimbus sorry, just noticed your message Out fix is quite specific and does not modify the apollo client in any way

For me it still looks like it would make sense to add docs about the AbortController, but I don’t exactly know what has changed in the Apollo v3 regarding that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve errors | Google Drive
This guide provides instructions on how to resolve specific API errors. Resolve a 400 error: Bad request. This error can result from any...
Read more >
Troubleshooting Cloud Functions - Google Cloud
This document shows you some of the common problems you might run into and how to deal ... The request was aborted because...
Read more >
CSRF verification failed. Request aborted - Stack Overflow
When you found this type of message , it means CSRF token missing or incorrect. So you have two choices. For POST forms,...
Read more >
AWS SDK for JavaScript v3
The AWS SDK for JavaScript v3 is a rewrite of v2 with some great new features. ... The request will not be created...
Read more >
Troubleshooting requests - Postman Learning Center
If you are using variables or path parameters with your request, make sure the final address is structure correctly by opening the console,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found