question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RNFetchBlob request error: url == nullnull

See original GitHub issue

last 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:open
  • Created 3 years ago
  • Reactions:11
  • Comments:7

github_iconTop GitHub Comments

2reactions
roaringUnicorncommented, Nov 17, 2020

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.

0reactions
nguyenvanphuc2203commented, Oct 8, 2021

Facing the same issue on Oppo android phone

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found