You want to use Python’s request library to call the company interface and create some data, but you finally report an error
Traceback (most recent call last):
File "D:\My_Python\LeetCode\debug.py", line 38, in <module>
res = requests.post(url,headers=headers,json=json_data,verify = False)
File "C:\Users\lisq\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\lisq\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\lisq\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\lisq\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\lisq\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='dyyy.chinacaring.com', port=18081): Max retries exceeded with url: /api/test/ehospital/confirmed (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)')))
I searched many methods on the Internet and tried to verify = false, but it didn’t work.
finally, I found that it was because my packet capture tool was on, because I first used the packet capture tool to catch the interface, and then used the requests library to operate. The packet capture tool Charles was not off.
just turn off the packet capture tool
Read More:
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- Ambari OpenSSL version problem: sslerror: failed to connect. Please check OpenSSL library versions
- Solutions to the problem of using sudo caused by Ubuntu’s wrong modification of sudoers
- Concat error caused by tensorflow version
- Caused by: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0
- The version number of robot JS running by electron does not match
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- wget OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
- [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed (_ssl.C:579)
- Caused by: java.lang.IllegalStateException: Ambiguou There is already ‘XXXXXXController‘ bean method
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Caused by: java.lang.reflect.InvocationTargetExceptio
- android Caused by: java.util.ConcurrentModificationException
- Several problems caused by device encryption
- firefox ssl_error_unsupported_version
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- Item exception: failed to get the required ADT version number from the SDK
- requests.exceptions.InvalidSchema : no connection adapters were found for a murder case caused by a comma
- The solution of flicker and no refresh caused by OpenGL + MFC
- Python error open SSL.SSL.SysCallError :(-1,‘Unexpected EOF‘)