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

Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure #244

Open
Josiahhx opened this issue Jun 16, 2022 · 4 comments
Labels

Comments

@Josiahhx
Copy link

Josiahhx commented Jun 16, 2022

pixivpy3.utils.PixivError: requests POST https://app-api.pixiv.net.cdn.cloudflare.net./auth/token error: HTTPSConnectionPool(host='app-api.pixiv.net.cdn.cloudflare.net.', port=443): Max retries exceeded with url: /auth/token (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1108)')))

请问是ip被封了吗,调用的byPassSniApi

@upbit
Copy link
Owner

upbit commented Jun 17, 2022

解析到 cloudflare 了,应该是没绕过。可以看看是哪个DNS返回的,把对应DNS屏蔽掉重新解析试试

@upbit upbit added the question label Jun 17, 2022
@Josiahhx
Copy link
Author

Josiahhx commented Jun 17, 2022

解析到 cloudflare 了,应该是没绕过。可以看看是哪个DNS返回的,把对应DNS屏蔽掉重新解析试试

这样算更换dns吗,但是我现在还是这个报错
`C:\Users\crbhf>nslookup pixiv.net
服务器: public1.114dns.com
Address: 114.114.114.114

非权威应答:
名称: pixiv.net
Address: 199.193.116.105

C:\Users\crbhf>nslookup pixiv.net
服务器: dns.google
Address: 8.8.8.8

非权威应答:
名称: pixiv.net
Addresses: 2001::42dc:9e11
108.160.166.142

C:\Users\crbhf>nslookup pixiv.net
服务器: public1.alidns.com
Address: 223.5.5.5

非权威应答:
名称: pixiv.net
Addresses: 2001::453f:be02
104.23.124.189`

@fuqiuluo
Copy link

用google的dns试试看?比如8.8.8.8,我刚刚也遇到这个问题,换个dns就解决了。

@test-black
Copy link

test-black commented Sep 8, 2022

python/cpython#16820

import ssl
cert = ssl.get_server_certificate(('baidu.com', 443))
cert = ssl.get_server_certificate(('app-api.pixiv.net.cdn.cloudflare.net', 443)) # ssl_handshake error

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

No branches or pull requests

4 participants