One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
richiebox
8 years agoNew member | Level 2
2/files/list_folder returns empty
Hi, I'm tryingt to list the contents of the root folder. It was returning fine for a while and now it's suddenly stopped return anything? I had one file in there, and I added a couple more to test but it's still returning empty.
Would appreciate any help. Request and response below.
Request
curl -X POST https://api.dropboxapi.com/2/files/list_folder \
--header "Authorization: Bearer <my-oauth-token>" \
--header "Content-Type: application/json" \
--data "{\"path\": \"\",\"recursive\": true,\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false,\"include_mounted_folders\": true}"
Response
{"entries": [], "cursor": "<cursor>", "has_more": false}
- Greg-DB
Dropbox Staff
Can you double check that there are still entries to list in the relevant account, e.g., via the web site? Make sure you didn't accidentally delete the contents in the Dropbox folder (or in the relevant app folder, if you're using an app with the "app folder" permission).
If there are definitely active entries that should be returned, please open an API ticket with details (e.g., user ID, app name, and a screenshot of the items if possible) so we can look into it. Thanks in advance!
- richieboxieNew member | Level 2
Thanks for your reply Greg.
It started working again after a few hours. There were files in there and it just started replying with metadata for them. Not sure what happened there?
- Greg-DB
Dropbox Staff
I can't say offhand unfortunately. If you'd like us to look into it, we'll need more information. Please open a ticket as requested in my previous reply if you'd like us to do so.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 12 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!