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()