requests连接https的问题:
来源:9-1 获取cookie思路分析

慕仰7558553
2019-04-30
请求中添加verify=False,报错“json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)”
不添加verify=False,,报错“requests.exceptions.SSLError: HTTPSConnectionPool(host='192.168.0.114', port=443): Max retries exceeded with url: /api/admin/enterprises/1/users?idUserGroup=1&startwith=0&limit=30 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
”
写回答
1回答
-
Mushishi
2019-04-30
说明你返回的接口不是json格式,你用text去看一下结果是啥
00
相似问题