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.ls got 1 arguments, expected 2 invoke

See original GitHub issue

MAY BE A BUG

When I am trying to get all files from sccard directory, it throws an exception.

I am testing on android, samsung TAB A. Has anyone the problem like this.

thanks in advance 😃

code snipet:

RNFetchBlob.fs.ls(PATH_TO_DIRECTORY).then(async files => {
                    alert(files.length);
                }).catch(error => {
                    alert(error);
                });

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:22

github_iconTop GitHub Comments

4reactions
tombaileycommented, Dec 6, 2018

@CurrieBen can you ask them to update their fetchblob version to 0.10.13? I tested this back in October and it seemed to be okay on 0.10.13

3reactions
scarlaccommented, Dec 17, 2018

This is still an issue. Native library expects a callback (which is largely unused), which this library does not provide, thus causing this error. You can patch this yourself in node_modules by adding an empty callback function.

If anyone is using redux-persist-filesystem-storage, they need to pin their version to 1.2.0 (ie. "redux-persist-filesystem-storage": "1.2.0" (removing the ^ in front of the version n umber), otherwise they’ll get this fork instead, which is actually broken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNFetchBlob.mkdir got 1 arguments, expected 2
The answer to this question is completely dependant on how you call the library. Add your code. – nbokmans. Mar 7, 2019 at...
Read more >
react-native-fetch-blob - npm
A function that triggers when there's data received/sent, first argument is the number of sent/received bytes, and second argument is expected ...
Read more >
rn-fetch-blob | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Typeerror is not a function react native - Caritas Castellaneta
(In 'interpolate(this. json This is a react-redux-firebase v2. ... to my . call(arguments, 1)); var sContent; sContent=''; sContent app.
Read more >
解决react native巨坑之更新RN版本后出现的问题 - 简书
更新后遇到两个问题,废话不多说,直接上问题: ```RNFetchBlob.ls got 1 arguments, expected 2 invoke ``` 这种情况出现一...
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