File "D:\pyth\lib\http\client.py", line 1037, in _send_output
self.send(msg)
File "D:\pyth\lib\http\client.py", line 975, in send
self.connect()
File "D:\pyth\lib\site-packages\urllib3\connection.py", line 205, in connect
conn = self._new_conn()
File "D:\pyth\lib\site-packages\urllib3\connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: at 0x0000016EAC334A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\pyth\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "D:\pyth\lib\site-packages\urllib3\connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "D:\pyth\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5500): Max retries exceeded with url: http://localhost:8080/sldndemo/test/admin/test/getImage (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\pythonProject\ApiTest.py", line 130, in
t = threading.Thread(target=myrequest.weather_DC())
File "D:\pythonProject\ApiTest.py", line 110, in weather_DC
result = req.get(url=weatherinfo_search, headers=headers)
File "D:\pyth\lib\site-packages\requests\api.py", line 75, in get
File "D:\pyth\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "D:\pyth\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "D:\pyth\lib\site-packages\requests\adapters.py", line 513, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=5500): Max retries exceeded with url: http://localhost:8080/sldndemo/test/admin/test/getImage (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))