Bug:

requests.exceptions.SSLError: HTTPSConnectionPool(host='pt.morning-star.cn', port=443): Max retries exceeded with url: /pt-app/api/home/getAllActivityCodes%20 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

 


原因:

开了Filder之类的抓包工具,或者使用了ip代理之类的
解决:

1.关闭抓包工具

2.在请求参数中设置代理为 False 如:

 requests.post(url=url,headers = headers,verify=False).json()

 




相关文章:

  • 2022-01-30
  • 2021-11-05
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-11-30
  • 2021-05-30
相关资源
相似解决方案