filesListFolder problem when > 67 files in folder
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
Thanks for the report! We’ll look into it.
@greg-db thanks! 🙂