`filesListFolderContinue` dose't work with large response.
See original GitHub issueThis 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.
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:
- Created 6 years ago
- Comments:17 (7 by maintainers)
Top 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 >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
This should be fixed as of v4.0.9. Please update and let us know if you’re still seeing any issues.
@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 🙌