Traceback (most recent call last):
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\urllib3\contrib\pyopenssl.py", line 488, in wrap_socket
cnx.do_handshake()
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\OpenSSL\SSL.py", line 1934, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\OpenSSL\SSL.py", line 1663, in _raise_ssl_error
raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (10054, 'WSAECONNRESET')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "D:\workHome\venv\pythonSpaceEnv\lib\site-packages\urllib3\util\retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='jira.cmss.com', port=443): Max retries exceeded with url: /browse/rest/api/3/field (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')",),))
During handling of the above exception, another exception occurred:
解决方案:
导入requests之后执行
requests.packages.urllib3.contrib.pyopenssl.extract_from_urllib3()