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.

Ignore networkError for cancelled call

See original GitHub issue

I am using apollo 3.3.0 in my react app and when a user comes to the page login and then immediately logout or change page the component will be unmounted in the meanwhile the calls which are fetching data will be cancelled. once they are cancelled I am getting an networkError failed to fetch. this is annyoing is there a way to avoid this issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
UmangThapliyalcommented, Mar 1, 2021

@jcreighton okay will give a codesandbox so you can take a look at it

1reaction
jcreightoncommented, Mar 1, 2021

@UmangThapliyal I can’t tell from the written example what is happening, whether it’s an expected error or not. A reproduction would be a good idea.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript "TypeError: cancelled" error when calling "fetch" on ...
This will give the dreaded TypeError: cancelled ... const ignoreErrors = [ 'TypeError: NetworkError when attempting to fetch resource.
Read more >
Handling operation errors - Apollo GraphQL Docs
When a network error occurs, Apollo Client adds it to the error.networkError field returned by your useQuery call (or whichever operation hook you...
Read more >
What Does "Cancelled Call" Mean on FaceTime? - ITGeared
A cancelled FaceTime call can occur due to various reasons. It could be the recipient didn't pick up the call or rejected answering...
Read more >
Request cancelled vs network failure (error.nserror) · Issue #570
i am dependent on the error.nserror to inform me of whether the operation is cancelled, or it is a network failure.
Read more >
What Does Cancelled Call Mean On iPhone? A Useful Guide
Has their phone on silent and they can't hear it ring. Is ignoring you. Is unable to take calls due to their location,...
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