Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
723 stars 330 forks source link

Network Error #219

Open jpmazza opened 3 years ago

jpmazza commented 3 years ago

Env: "react-native": "^0.61.1"

Hey! I'm using this library (v 5.7.0) to upload videos. On iOS it's working great, but on Android, it's not working for devices with API 29. I'm pretty sure that it will work if I upgrade to the latest version (6.2.0) but when I tried this I got a Network Error when I did some other axios request (not related to this library). This is super weird I don't know if there is some kind of conflict with axios.

When I ran adb logcat I noticed isAxiosError: true. In my view, the breaking changes on react-native-background-upload (v6) are breaking axios.

Any thoughts?

matamicen commented 3 years ago

@jpmazza I fixed a similar error happening with a fetch, is a RN issue with the OkHttp android library with version above 4 which v6.2.0 of react-native-background-upload uses , here is the fix, hope it helps.