-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script stops with a 404 dropbox rest error on some files #16
Comments
Can you provide any additional information about what caused the error? Putting a try/except around this code is probably not the best way to address this issue, so I would need to reproduce the issue to find the source of the problem. |
I am also having this problem, Im running this in lubuntu, with version python 2.7.4, try: how can I fix it? it seems like its not able to find any files |
I was hoping to have some spare time to spend on this and getting into github bit it seems this is not to be, at least for now. I should also point out that when I ran into this problem it only affected maybe 20 out of 90,000+ files. Certainly not everything in dropbox! I'll also just mention that I actually ended up modifying that try/except to catch all errors as I ran into a couple of files (that I didn't need) that had non ascii characters in their names which produced another error. Sorry about all the hacks but I was helping someone recover from one of those ransomware viruses and time was of the essence. Also now they are recovered I don't have access to the dropbox account that produced these errors so there isn't much more I can do to help. |
Thanks. Im going to try them this evening. Do you know of a way to try this on windows? This is my current situation: Since the commands were written for linux, i am running a lubutu os in virtualbox and downloaded dropbox on lubuntu with the same account. It is now synced to the current windows dropbox folder. Then i open terminal and cd my way to restore script and i type the python commad provided on the first page. Ive only tried 2 folders (i dont want to mess everything up) am i doing everything correct on my end? Ive only dealt with linux os for a month. Thanks for your time! |
I tried your version, but I am still getting this error: |
I am getting the same error. No solution? |
I can't reproduce this, so there's no way to debug it. Please provide as much information as you can so that someone can figure it out at some point. |
I ran into this with a shared folder, idk if that helps. Here was the stack
Also the file was super old, but it had just barely been added to my dropbox today. Maybe revision history works different for shared folders or something? Thanks so much for this script! |
this is my experience:
APPENDIX: If you need help contact me over http://marcelino.si because many newcomer havent root server access. Have a nice day, bye |
dropbox.rest.ErrorResponse: [404] u"Path XXXXXX not found
I worked round this by wrapping:
if item.get('is_dir', False):
restore_folder(client, item['path'], cutoff_datetime, verbose)
else:
restore_file(client, item['path'], cutoff_datetime,
item.get('is_deleted', False), verbose)
(lines 81 to 85)
in a try, catch block so that these files would be skipped and the restore continue.
The text was updated successfully, but these errors were encountered: