Skip to content
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

urlopen error [Errno 1] #227

Closed
AgentGrady opened this issue Apr 24, 2021 · 8 comments
Closed

urlopen error [Errno 1] #227

AgentGrady opened this issue Apr 24, 2021 · 8 comments

Comments

@AgentGrady
Copy link

I am having a problem, whenever I try to download a blog I get this error message urlopen error [Errno 1, I tried entering an API code and running the CMD as a administrator but nothing seems to solve it. What am I doing wrong here?

@bbolli
Copy link
Owner

bbolli commented Apr 24, 2021

Can you show the command you entered and the complete output?

@AgentGrady
Copy link
Author

Certainly

C:\Windows\System32>tumblr_backup.py askemperorclaudius-blog
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1
<urlopen error [Errno 1] _ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version> getting https://api.tumblr.com/v2/blog/askemperorclaudius-blog.tumblr.com/posts?reblog_info=true&api_key=T7YMGB3yf0kSI4Aa0ktCHr7Ip1jSRNEiWo7ISKpYe9c9IecvEz&limit=1

@bbolli
Copy link
Owner

bbolli commented Apr 24, 2021

Please try tumblr_backup.py -S askemperorclaudius-blog

@AgentGrady
Copy link
Author

OK, I tried that and I get the exact same problem

@cebtenzzre
Copy link
Collaborator

Closing as duplicate of #226

@bbolli
Copy link
Owner

bbolli commented Apr 25, 2021

I'm not sure if this is a duplicate. #226 refers to macOS, not Windows.

@cebtenzzre
Copy link
Collaborator

@bbolli This can occur on Windows if using a really old Python build (2.7.2 or older), as TLS 1.2 support was added to OpenSSL 1.0.1 released on March 14, 2012. But that isn't a tumblr-utils issue as it is trivial to update to Python 2.7.18 on Windows.

@bbolli
Copy link
Owner

bbolli commented Apr 26, 2021

So, @AgentGrady, what's your Python version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants