|
本帖最后由 dscao 于 2025-6-28 09:08 编辑
感谢楼主的分享
借家里人的电信号测试了一下,出现:
Error fetching China Telecom data: HTTPSConnectionPool(host='appgologin.189.cn', port=9031): Max retries exceeded with url: /login/client/userLoginNormal (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1028)')))
Error fetching China Telecom data: HTTPSConnectionPool(host='appgologin.189.cn', port=9031): Max retries exceeded with url: /login/client/userLoginNormal (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)')))
也用ai问了几次,最后给出忽略证书后的修改代码,可以获取到数据了,就是每次启动后会有一次警告提示。说是不影响。
如果有需要的话,我PR一下。
|
|