当我使用python调某api时https请求报错,如下:
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1123)
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1123)’)))
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=', port=443): Max retries exceeded with url: (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1123)’)))
我这边的解决方法:关闭代理软件,或者python请求时配置该代理