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.

Network failures resulting in unhandled exceptions

See original GitHub issue

This may be due to changes in React Native 0.55, I’m not sure. Our crash analysis tool is reporting these unhandled exceptions for a plain GET when the network connectivity is bad.

node_modules/react-native/node_modules/whatwg-fetch/fetch.js in listener at line 440:21

        options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')
        var body = 'response' in xhr ? xhr.response : xhr.responseText
        resolve(new Response(body, options))
      }
      xhr.onerror = function() {
        reject(new TypeError('Network request failed'))
      }

The events leading up to it:

xhr GET https://my.api/someparam [0]

sentry TypeError: Network request failed

exception TypeError: Network request failed

I saw this once in the debugger but forgot to capture the call & response.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
peacechencommented, May 10, 2018

Yes, sorry wasn’t clear about that. There’s a wrapper class that creates the apisauce instance and assigns it to the request key.

0reactions
skellockcommented, May 29, 2018

All good! Thanks for the follow up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Internet Explorer Unhandled Exceptions
Unhandled exception errors usually cause Internet Explorer to crash or become unresponsive. To resolve unhandled exception errors, you must remove or re- ...
Read more >
What is an Unhandled Exception, and How to Catch All C# ...
An exception is a known type of error. An unhandled exception occurs when the application code does not properly handle exceptions. For example, ......
Read more >
Diagnose exceptions in web apps with Application Insights
Unhandled exceptions originating from controllers typically result in a 500 "Internal Server Error" response. If such a response is manually ...
Read more >
What is an Unhandled Exception? - Video & Lesson Transcript
An unhandled exception is an error in a computer program or application when the code has no appropriate handling exceptions.
Read more >
Unhandled Exceptions in .NET - Sinara Consultants
An unhandled exception in the main program or in a Thread callback will result in the program being immediately terminated.
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