cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Internal server error 500 when attempting to restore files

Internal server error 500 when attempting to restore files

A S.13
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 8

Greg-DB
Dropbox Staff

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
Explorer | Level 4

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

A S.13
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.

Greg-DB
Dropbox Staff

Thank you for checking that!

A S.13
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

 

Greg-DB
Dropbox Staff

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
Explorer | Level 4

You are an outstanding individual.  Thanks for the reply.

 

A S.13
Explorer | Level 4

Also:  Holy moly necro thread!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    A S.13 Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?