rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

RNFetchBlob request error: url == nullnull on blob:http:// urls

Open stefanchiriac opened this issue 4 years ago • 3 comments

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"

stefanchiriac avatar Jan 10 '21 14:01 stefanchiriac

Hey @stefanchiriac, did You solve this problem? :)

dawidplesniarski avatar Oct 25 '21 13:10 dawidplesniarski

@stefanchiriac @dawidplesniarski did you find a way to solve the issue? Please let me know if you have. Thank you

hypnocill avatar Jan 13 '23 17:01 hypnocill

not worked for blob:https:/url

fukemy avatar Jan 31 '24 02:01 fukemy