ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)

ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)_第1张图片

在使用 requests 爬网站时报错:

  1. ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)
  2. urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mooc1-1.chaoxing.com', port=443): Max retries exceeded with url: /work/ .......
  3. requests.exceptions.SSLError: HTTPSConnectionPool(host='mooc1-1.chaoxing.com', port=443): Max retries exceeded with url: /work/  ......

原因是使用了代理,把代理关了就可以了

你可能感兴趣的:(ssl,https,网络协议)