- 积分
- 660
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2020-2-25
- 最后登录
- 1970-1-1
|
发表于 2020-9-30 09:55:29
|
显示全部楼层
请教楼主,原先用的好好的,突然有一天就不行了。
出现错误如下:
2020-09-30 09:10:47.573000
Ice Checked!
now_time: 20200930010000
savePath: 20200930010000data_d.txt
Traceback (most recent call last):
File "D:\Program Files\python\lib\urllib\request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "D:\Program Files\python\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Program Files\python\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "D:\Program Files\python\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "D:\Program Files\python\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "D:\Program Files\python\lib\http\client.py", line 964, in send
self.connect()
File "D:\Program Files\python\lib\http\client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "D:\Program Files\python\lib\socket.py", line 724, in create_connection
raise err
File "D:\Program Files\python\lib\socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\python\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-fd03d346825f>", line 1, in <module>
runfile('E:/python_study/seaborn/cimiss_timerage_day.py', wdir='E:/python_study/seaborn')
File "D:\Program Files\JetBrains\PyCharm 2018.2.2\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\Program Files\JetBrains\PyCharm 2018.2.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:/python_study/seaborn/cimiss_timerage_day.py", line 80, in <module>
result = client.callAPI_to_saveAsFile(userName, password, interfaceId, params, dataFormat='csv',savePath=savePath)
File "E:\python_study\seaborn\cma\cimiss\DataQueryClient.py", line 104, in callAPI_to_saveAsFile
urllib.request.urlretrieve(result.fileInfos[0].fileUrl, savePath)
File "D:\Program Files\python\lib\urllib\request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "D:\Program Files\python\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "D:\Program Files\python\lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "D:\Program Files\python\lib\urllib\request.py", line 544, in _open
'_open', req)
File "D:\Program Files\python\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "D:\Program Files\python\lib\urllib\request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "D:\Program Files\python\lib\urllib\request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。> |
|