-
Notifications
You must be signed in to change notification settings - Fork 124
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
HTTP Error 401: Unauthorized getting https://api.tumblr.com/ #210
Comments
I've got the same issue. I already had it yesterday, then downloaded the recently updated tumblr_backup.py with the new API key and everything worked, but apparently Tumblr has changed something between yesterday and today... |
I didn't apply for any rate limitation. But if this goes on, I'll have to remove the API key and you mass-downloaders will have to get your own keys :-) |
I'm having the same issue. My last attempt before today was April 29 and there was no problem. Now I can't do anything. I'm willing to get my own API key - how do I do that? I looked at my account settings on tumblr and it isn't obvious where to get one. And once I do that, do I just replace the key currently in your .py file with the new one? |
As far as I understand it, you can't just get the API key, you need to register an application that you would need the key for: https://www.tumblr.com/oauth/register |
5000 requests per day is one thing, but the process doesn't even start for me--I just get the "Unauthorized getting" error a dozen times when I try to run it and then it stops. |
Same with me. What I'm confused is how the script worked previously for so long, with the old API key, for so many people and blog archives, rate limitation exception? I ran this script on tons of blogs in the past. It sounds like we should be making our own oath app and getting our own oath API consumer key (which I've now done and the script works again) so we could at least do 5000 requests a day individually. I think this issue could be closed assuming this requirement is stated in the README now, or if @bbolli applies for rate exception for the new key.
This is because the new API key is restricted to 5000 requests a day and has hit that limit, given it's public. See above posts, you need to make your own oAuth app and replace the API key in the tumblr_backup.py script with it. |
I don't even have the first clue how to build my own oath app - is there any way you could help me with that? |
To get an API key log in to Tumblr and go to https://www.tumblr.com/oauth/apps |
Thank you so much, that works! Somehow I thought someone was gonna check on my (non-existent) application and website before I got the key... |
Hey folks, random Tumblr engineer here! Please do not include Tumblr API keys in public repos! As stated in the API agreement, sharing your API key is not allowed. Instead, please set up your own API key for what you want to do, as has been described already in this thread. That's the best path forward for tools like this. |
wonder if they closed that loophole already. I'm trying to do the same thing and it's not accepting any of the application website and callback urls I am entering. I've tried both fake and actual websites. |
It's not a loophole, it's the official way to interact with the Tumblr API. |
putting localhost for the callback worked. thanks. |
tumblr-utils 08cbe44
Command:
./bin/python2.7 tumblr_backup.py --incremental --save-video --save-audio --json $BLOG
Output:
Expected output:
Posts successfully being backed up
This happens on any blog, any post. Confirmed the blogs are not private, do exist, and don't require you to be logged in to Tumblr to view.
Is this because the API key was update recently and it's hit the 5000 API call limit, before Tumblr has approved limit removal?
Also begs the question, if I use my own app and API key can I avoid this error?
Thanks
The text was updated successfully, but these errors were encountered: