RNFetchBlob request error: url == nullnull
See original GitHub issuelast week i could download any file, but currently get this issue with any link
RNFetchBlob request error: url == nullnull
const documentDir = RNFetchBlob.fs.dirs.DocumentDir
const url = 'https://file-examples-com.github.io/uploads/2017/02/zip_5MB.zip'
let options = {
fileCache: true,
path: documentDir + '/assets.zip',
}
RNFetchBlob.config(options)
.fetch('GET', url)
.then(res => {
console.log(res, 'Result')
})
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:7
Top Results From Across the Web
rn-fetch-blob Error: RNFetchBlob.fetchBlobForm failed to ...
postFileUpload undefined Error: RNFetchBlob.fetchBlobForm failed to create request body at index.js:313 at MessageQueue.
Read more >A brand new website interface for an even better experience!
RNFetchBlob request error : url == nullnull on blob:http:// urls. ... Coming soon: A brand new website interface for an even better experience!...
Read more >How to use the rn-fetch-blob.config function in rn-fetch-blob
To help you get started, we've selected a few rn-fetch-blob.config examples, ... rsp.text()}`) throw new Error(`Request to ${url} failed with status code ...
Read more >rn-fetch-blob - npm
A module provides upload, download, and files access API. Supports file stream read/write for process large files.. Latest version: 0.12.0, ...
Read more >react-native-fetch-blob JavaScript and Node.js code examples
return null } if (await checkFileExistInLocal(filePath)) return filePath return RNFetchBlob.config({ path: filePath, }).fetch('GET', REMOTE_URL).then(() ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my case, it was simply an error in arguments, as i forgot to put the method first.
The error message is not helping, but it was RTFM.
Facing the same issue on Oppo android phone