-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch (or axios) causes hard crash on some URLs (but not others) #29196
Comments
I found a hint in Logcat - it appears that using OkHttp3 is causing some sort of versioning conflict that only manifests in one of the responses (maybe due to CORS headers, but that's completely unfounded speculation). My fix was to change my dependency on OkHttp3 in
to
Can't say whether this is a proper fix, or a workaround to an underlying RN problem, so I'll keep this open for now for others to review. Thanks! |
We also have faced this issue and the workaround above fixes it. Please if there is official fix or workaround on this, let us know, so we can update the code (or bump the package). |
thanks @hardcodet in my case the issue is solved |
Thanks @hardcodet. This issue bugged me for days. |
Hello everyone, in my case, I didn't have this line in my ./android/build.gradle:
I tried to add it, but no luck, same error. So I added those three lines in build.gradle: and IT WORKED !!! OMG, 2 days searching, this droves me crazy. Thanks a lot guys. flip |
I face the same issue also on iOS, it's terrible. Why try catch is not catching? 😭 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
@FrancescoBonizzi Did you solve it, I face the kind of the same issue with my RN version 0.73.x in my iOS too. It's so weird. |
Hi! I never solved it, unfortunately. I uninstalled Axios and went with |
Description
My app is crashing hard when doing API calls, and I narrowed it down to this point:
catch
block is invoked, but then the app still crashes hardReact Native version:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
The text was updated successfully, but these errors were encountered: