-
Notifications
You must be signed in to change notification settings - Fork 150
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
尝试登陆时返回10054错误码 #138
Comments
看提示应该是解析到的IP不可访问
|
@Notsfsssf 有见过类似的情况吗? |
直接上IP就行了,这是目前唯一的解决办法 |
有效,使用 |
那问题应该就是,如何通过DNS over HTTPS解析到 看目前返回的IP确实都指向它自己服务器了。。。https://cloudflare-dns.com/dns-query?name=app-api.pixiv.net&type=A&ct=application/dns-json |
我完全使用硬编码了,既然使用Dns over Https获得真实ip的方式依然不稳定,不如直接放弃这个特性,只是跟进的时候需要勤快一些 |
觉得你之前提供的这个bypass方法思路蛮好的,直接Set HOST对普通用户要求有点高(很少人知道如何获取真实host) |
https://dns.quad9.net:5053/dns-query?name=app-api.pixiv.net 这个思路可能不奏效,应该是P站这个域名,整个都指向了:app-api.pixiv.net.cdn.cloudflare.net. |
一个变通的解决方法,使用未指向cloudflare的host解析实际IP: api = ByPassSniApi() # Same as AppPixivAPI, but bypass the GFW
api.require_appapi_hosts(hostname="public-api.secure.pixiv.net") 原理:
方法:
|
确实能奏效👌,只是需要过两家服务提供商 |
短时间 我更新下example |
绕过去的这个方法太赞了!!!!!! |
尝试使用
example_bypass_sni.py
中的代码登陆时在login
函数处报错:pixivpy3.utils.PixivError: requests POST https://app-api.pixiv.net.cdn.cloudflare.net./auth/token error: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了 一个现有的连接。', None, 10054, None))
。尝试使用测试账号和自己的账号登陆,都出现了同样的错误。
这个错误出现在两天前,此前它表现良好。
我使用的是中国的教育网,请问这是否是问题所在?
另外,
api.hosts
的值是app-api.pixiv.net.cdn.cloudflare.net.
,尝试用curl -p
访问这个网址时返回了1001的错误码。尝试使用dns-query的其他返回值(ip地址)替换api.hosts,返回了错误
pixivpy3.utils.PixivError: requests POST https://104.18.30.199/auth/token error: HTTPSConnectionPool(host='104.18.30.199', 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:1045)')))
。The text was updated successfully, but these errors were encountered: