Announcements
Do you have an idea for Dropbox Paper? Share it with us!

Internal server error 500 when attempting to restore files

Explorer | Level 4

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

Re: Internal server error 500 when attempting to restore files

Dropboxer

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.

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Explorer | Level 4

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

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Explorer | Level 4

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.

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Dropboxer

Thank you for checking that!

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Explorer | Level 4

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

 

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Dropboxer

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.

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Explorer | Level 4

You are an outstanding individual.  Thanks for the reply.

 

Reply
Loading...

Re: Internal server error 500 when attempting to restore files

Explorer | Level 4

Also:  Holy moly necro thread!

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post