rn-fetch-blob
rn-fetch-blob copied to clipboard
RNFetchBlob request error: url == nullnull on blob:http:// urls
I have a react app integrated in android as a webview with react-native-webview.
I'm trying to download blob files (blob:http://10.0.2.2:9000/14b46217-c11e-48b8-8bb9-778d14b1b44e) with rn-fetch-blob, but instead of downloading is throwing an error: RNFetchBlob request error: url == nullnull
I'm following the documentation from homepage
RNFetchBlob.config({
fileCache: true,
})
.fetch('GET', url)
.progress((received, total) => {
console.log('progress', received / total);
})
.then((res) => {
console.log('The file saved to ', res.path());
})
.catch(function (error) {
console.log(
'There has been a problem with your fetch operation: ' +
error.message,
);
});
There is something else that has to be done for blob prefixed urls?
"react": "16.13.1" "react-native": "0.63.3" "rn-fetch-blob": "^0.12.0"
Hey @stefanchiriac, did You solve this problem? :)
@stefanchiriac @dawidplesniarski did you find a way to solve the issue? Please let me know if you have. Thank you
not worked for blob:https:/url