python + post请求报错:requests.exceptions.SSLError: HTTPSConnectionPool(host='www.tapd.cn', port=443): Max retries exceeded with url: /.....
一、问题描述
执行post请求出现如下报错:requests.exceptions.SSLError: HTTPSConnectionPool(host='www.xxx.cn', port=443): Max retries exceeded with url: /38268919/bugtrace/buglists/query/1/created/desc?query_token=20220706291334df28c613a85aa589f04376d034 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))
二、解决方案
post请求加参数verify=False
![](https://img2022.cnblogs.com/blog/1189062/202207/1189062-20220706114425176-1366743.png)