【发布时间】:2022-01-25 14:44:08
【问题描述】:
我尝试使用 python 请求库,但出现此错误
我大部分时间在 Windows 10 中使用 psiphon VPN
并在调用requests.get('[API URL]') 后出现以下错误
Exception has occurred: SSLError
HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /user (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)')))
During handling of the above exception, another exception occurred:
During handling of the above exception, another exception occurred:
File "C:\Users\Hessam\Desktop\QWE.py", line 3, in <module>
r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
【问题讨论】:
标签: python windows ssl error-handling