Network failures resulting in unhandled exceptions
See original GitHub issueThis 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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, sorry wasn’t clear about that. There’s a wrapper class that creates the apisauce instance and assigns it to the
request
key.All good! Thanks for the follow up!