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.

Unhandled error Network error

See original GitHub issue

Is this a bug?

Unhandled error Network error: Network request failed Error: Network error: Network request failed at new ApolloError ()

Environment

  1. react-native:0.44.0
  2. react-apollo:1.1.1
  3. apollo-client:1.0.4

Steps to Reproduce

  1. When turn off internet connection.
  2. Render
  3. When turn off internet during app navigation.

Expected Behavior

Component should render without data and errors received through props. The same when its a query error or some kind of http error.

Actual Behavior

The Red screen occur on failure of internet connection with this error “Unhandled error Network error: Network request failed Error: Network error: Network request failed at new ApolloError ()”

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
HPieterscommented, Jan 23, 2018

@haris-ramzan Did you ever resolve this issue?

0reactions
ICCanchecommented, Jan 25, 2018

Same here.

“react-apollo”: “2.0.4”, “react-native”: “0.52.0”,

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I fix the "Unhandled Rejection (error) - Stack Overflow
I fixed this issue by adding an Access-Control-Allow-Credentials header to HTTP responses in .NET CORE application. This header tells the ...
Read more >
Network error is causing an unhandled exception · Issue #5058
Network errors should always pop up on error link. Actual outcome: An exception that was raised by fetch is causing an unhandled exception....
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 >
MLB The Show 22 Network Error: How To Fix The “Unhandled ...
One of the first things to do is check the server status for the game. · Assuming the servers are working, start with...
Read more >
How to handle unhandledrejection errors using axios
How to handle unhandledrejection errors using axios. Axios is a great library, but unhandled promise rejections can be a problem. How do we...
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