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.

filesListFolder problem when > 67 files in folder

See original GitHub issue

Describe the bug After upgrading from 5.2.1 to 7.1.0 (this already happens with 6.0.2), when querying folders with > 67 files (folders themselves do not count), the call seems to hang and doesn’t readily return a response or error.

Sometimes, after a very long time, the following error is returned:

{
  error: '{"error_summary": "path/not_found/..", "error": {".tag": "path", "path": {".tag": "not_found"}}}',
  response: Response {
   size: 0,
   timeout: 0,
   [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
   [Symbol(Response internals)]: {
     url: 'https://api.dropboxapi.com/2/files/list_folder',
     status: 409,
     statusText: 'Conflict',
     headers: [Headers],
     counter: 0
    }
  },
  status: 409
}

The has_more property is false with 67 files.

Simplified code:

const dbx = new Dropbox({accessToken})
dbx.filesListFolder({path})
.then(({result}) => res.json(result.entries))
.catch(console.log)

To Reproduce Create a folder with 67+ files in it. Make the call.

Expected Behavior That the entries are returned.

Versions SDK: 7.1.0 Node/Express: 12.18.2/4.17.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
greg-dbcommented, Oct 20, 2020

Thanks for the report! We’ll look into it.

0reactions
osbancommented, Nov 13, 2020

@greg-db thanks! 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: filesListFolder slow - Dropbox Community
Solved: Hi, I use the Dropbox webhook to start a Javascript function I've written. It worked great the first few months when the...
Read more >
How many files can I put in a directory? - Stack Overflow
This is the only useful answer. We've made similar experiences. Our limit is 1.000 files to reduce problems with backups (too much directories...
Read more >
Folder copy error message when downloading a file that is ...
Describes a folder copy error that occurs because a security change in Windows XP SP2 or later affects the WebDAV redirector.
Read more >
HTTP - Developers - Dropbox.com
|[\r\n])*")The path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will...
Read more >
How to Find large Files and Directories with size in Linux and ...
One of the common problems while working in Linux is finding large files to ... in your file system, especially if you don't...
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