react-native-background-upload icon indicating copy to clipboard operation
react-native-background-upload copied to clipboard

Network Error

Open jpmazza opened this issue 4 years ago • 1 comments

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?

jpmazza avatar Sep 16 '20 15:09 jpmazza

@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.

matamicen avatar Oct 07 '20 17:10 matamicen