We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

A S.13's avatar
A S.13
Explorer | Level 4
7 years ago

Internal server error 500 when attempting to restore files

I deleted a handful of files and am trying to restore them, but about 1/3 of them give an internal server error when attempting to do so.  Below is the request ID and below that is the code being used.  It's very simple code for this piece.

Found file to restore (212): /weber/cs 2350/www/p2/template/cover
Failure: InternalServerError('95487d3c9fdf5a83d000aac47a26b63a', 500, '')

print('Found file to restore ({}): {}'.format(restore_count, item.path_display))
try:
    self.client.files_restore(item.path_display, revision)
except dropbox.exceptions.InternalServerError as e:
    print('Failure: {}'.format(e))

8 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Thanks for the report. We'll look into it.

    For reference, are you able to restore these same files (that give this 500 on the API) via the web site? Note that you can only restore deleted files for a limited amount of time after deleting them. The length of time depends on what plan you have.

  • A S.13's avatar
    A S.13
    Explorer | Level 4
    7 years ago

    No, there are no files found at all in my /Weber directory.

  • A S.13's avatar
    A S.13
    Explorer | Level 4
    7 years ago

    Correction:  If I specify myself in the 'Deleted By' folder, it DOES find the files.  I'm going to attempt to restore them via that method, but I would still like to know the reason for the 500 errors so I can avoid them in the future.

    I love Dropbox's API, but I'd truly like it to be consistent and reliable.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Thank you for checking that!

  • A S.13's avatar
    A S.13
    Explorer | Level 4
    7 years ago

    Restoring via the web site has restored 26 GB worth of data, but I had about 3 times that much.  Still going to attempt to restore via the API

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    The error handling on the API should be fixed now. This case should no longer return a 500 and will instead properly return a 409 for revisions that can't be restored.

  • A S.13's avatar
    A S.13
    Explorer | Level 4
    7 years ago

    You are an outstanding individual.  Thanks for the reply.

     

  • A S.13's avatar
    A S.13
    Explorer | Level 4
    7 years ago

    Also:  Holy moly necro thread!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
411 Following

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 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!