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

Python中requests库发送请求时遇到的443问题 #26

Open
QiYongchuan opened this issue Jul 7, 2023 · 0 comments
Open

Python中requests库发送请求时遇到的443问题 #26

QiYongchuan opened this issue Jul 7, 2023 · 0 comments
Labels
Kill-bugs The tools i kill bugs

Comments

@QiYongchuan
Copy link
Owner

报错信息:

    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='wttr.in', port=443): Max retries exceeded with url: /%E5%A4%A9%E6%B4%A5?lang=zh (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

看到443 以及 SSLError报错,心里大概有了方向:应该还是代理及网络的原因。

问GPT,答:

image

期间Google、csdn搜索的方法:
image
在发送请求的同时,关闭SSL验证,以及添加配置代理服务器设置。
仍无法解决。

最后解决方法:关闭梯子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kill-bugs The tools i kill bugs
Projects
None yet
Development

No branches or pull requests

1 participant