Forum Discussion

Salt's avatar
Salt
New member | Level 2
9 years ago

API throws does not exist exception when file clearly exists

Using Python API.

 

Ever since Sept 26, we have been receiving thousands of ApiError.DownloadError.get_path.is_not_found exceptions a day when trying to retrieve files that are clearly on dropbox.

 

Process:

  1. We ask for listing of what files exist.
  2. Iterate over that list, trying to download the files
  3. Get thousands of error a day stating that the file we were just told existed, does not exist.
  4. We can then try again later and the exact same file path and it works fine.

 

Simplified Example Code:

client = Dropbox(token)
response = client.files_list_folder('', recursive=True)

for entry in response.entries:
    if isinstance(entry, FileMetadata):
        client.files_download(entry.path_display) # << breaks randomly

This is becoming extremely frusterating, causing an excessive amount of additional processing, slowing our processing, and making the system look unreliable to our clients.

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    Thanks for the report! I see you also opened this as a ticket, so we'll follow up there privately as we'll likely want to look into this more specifically for you.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!