-
Notifications
You must be signed in to change notification settings - Fork 786
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
App crash on Android with Error: canceled due to java.lang.IllegalStateException: cannot make a new request because the previous response is still open: please call response.close() #795
Comments
The reported issue don't seem to occur when I updated to rn-fetch-blob 0.13.0-beta.1. Will a final version of this be releasing soon? |
Nope it won't. |
Same +1 |
+1 |
This repo is dead... |
Any update on this? Facing this issue. |
@christopher-18 yep, migrate to https://www.npmjs.com/package/react-native-blob-util |
Solution https://stackoverflow.com/a/77329785/11762907 android/media/ Folder name should be the package name |
The issue reproduces for me on 0.13.0-beta.1 still :'( |
wrapping the config with addAndroidDownloads solved this for me:
|
I recently upgraded my app's react native library from 0.63 to 0.67.4 and I am now targeting,compiling for Android 12 (SDK 31) from Android 11 (SDK 30). I am using rn-fetch-blob v0.12.0 to fetch a PDF.
After the upgrade I am now getting this error when trying to fetch:
canceled due to java.lang.IllegalStateException: cannot make a new request because the previous response is still open: please call response.close()
Is there additional setup/config changes to support SDK 31 (Android 12)?
This #478 seems to report the same issue but it is for Android 9. My app was working when it was compiled for and targeting android 11.
Any help or suggestions will be highly appreciated.
rn-fetch-blob 0.12.0
react-native 0.67.4
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
build.gradle
Note: The try catch above is not catching the exception. The app crashes and closes when it gets the error.
The text was updated successfully, but these errors were encountered: