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.

`filesListFolderContinue` dose't work with large response.

See original GitHub issue

This code doesn’t work if the response is about 2MB or more.

require('isomorphic-fetch'); // or another library of choice.
const Dropbox = require('dropbox').Dropbox;
const dbx = new Dropbox({
  accessToken: 'YOUR_ACCESS_TOKEN_HERE',
});

const fetchData = async () => {
  const data = await dbx.filesListFolderContinue({
    'cursor': 'YOUR_CURSOR_HERE',
  });
  console.log(data);
};

fetchData();

I examined the cause, and I found. Comment out the following line and it works normally.

https://github.com/dropbox/dropbox-sdk-js/blob/fe9b4a78c8940891dcfacc1b03928311f3c6bf63/src/rpc-request.js#L5

This problem probably caused by bitinn/node-fetch. It dose not happen in browser’s native Fetch API. Update node-fetch v2.0.0 dose not solve it.

I think that the memory capacity of the Stream API of Node.js and so on are involved.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
greg-dbcommented, Jul 20, 2018

This should be fixed as of v4.0.9. Please update and let us know if you’re still seeing any issues.

1reaction
steveklebanoffcommented, Jul 3, 2018

@pran1990 can you do a release soon so my PR that fixes this ( https://github.com/dropbox/dropbox-sdk-js/pull/203 ) is on npm? thanks 🙌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Dropbox API to download All Content
The way it's set up now, it can fetch all files, but not directories within this directory. dbx .filesListFolder({path: '/App'}) .then(response => {...
Read more >
HTTP - Developers - Dropbox.com
The user or team account doesn't have access to the endpoint or feature. The Content-Type of the response is JSON of typeAccessError. AccessError...
Read more >
3 - Stack Overflow
On the other hand, It's working fine on Cpanel but not working on Local ... Seems like the API user account you're using...
Read more >
Dropbox API / JavaScript ES6 Tutorial - Expense Organizer
Learn how to build an expense organizer with the Dropbox API and ES6! You can also check out the interactive version of the...
Read more >
Dropbox Node SDK Class
If you receive an HTTP 200 response with the supplied query, it indicates at least ... Note that this endpoint will continue to...
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