bbolli / tumblr-utils

Utilities for dealing with Tumblr blogs, Tumblr backup
GNU General Public License v3.0
667 stars 124 forks source link

Failed back up of a blog #220

Closed Dragonfly8790 closed 3 years ago

Dragonfly8790 commented 3 years ago

I cannot back up a blog. I have done it succesfully several times in the past, so I suspect it has something to do with the latest change to tumblr's own code. I re-downloaded tumblr-utils today, thinking my version might be outdated, but the issue remains. I use the command "tumblr_backup.py " and I get several lines of "HTTP Error 401: Unauthorized getting https://api.tumblr.com/v2/blog//posts?reblog_info=true&api_key=&limit=1". The blog is not password protected, but it is a side blog. However, I checked it on some other tumblrs too, and it gives the same error.

cebtenzzre commented 3 years ago

Please read the comment in the script here: https://github.com/bbolli/tumblr-utils/blob/01d352801a476c6e7d9e89d804f46cc5e963db75/tumblr_backup.py#L104-L105 This changed in June when Tumblr disabled the public API key (see this comment from a Tumblr engineer).

@bbolli We should probably document this better. At least in tumblr_backup.md but preferably in the README. And also fail fast (maybe at the top of apiparse?) with a clear error message if the API key is left blank. I would make a PR for this but mine never get merged :(

Dragonfly8790 commented 3 years ago

Thank you so much! I didn't check the script, and I couldn't find anything in readme file. I forgot that change was so long ago, I should've checked older issues.