python Client.service 调用接口,老是出现下面错误 timeout
Traceback (most recent call last):
File "D:Python27libsite-packagesgeventgreenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "E:workcache.py", line 110, in inner_func2
result=func(*args,**kwargs)
File "E:workjinri_handler.py", line 110, in do_handle
r=__client.service.GetRateListByPNR(s)
File "buildbdist.win32eggsudsclient.py", line 542, in __call__
return client.invoke(args, kwargs)
File "buildbdist.win32eggsudsclient.py", line 602, in invoke
result = self.send(soapenv)
File "buildbdist.win32eggsudsclient.py", line 637, in send
reply = transport.send(request)
File "buildbdist.win32eggsudstransporthttps.py", line 64, in send
return HttpTransport.send(self, request)
File "buildbdist.win32eggsudstransporthttp.py", line 77, in send
fp = self.u2open(u2request)
File "buildbdist.win32eggsudstransporthttp.py", line 118, in u2open
return url.open(u2request, timeout=tm)
File "D:Python27liburllib2.py", line 394, in open
response = self._open(req, data)
File "D:Python27liburllib2.py", line 412, in _open
'_open', req)
File "D:Python27liburllib2.py", line 372, in _call_chain
result = func(*args)
File "D:Python27liburllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "D:Python27liburllib2.py", line 1174, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
<Greenlet at 0x20f6580: inner_func2('jinri', {'rt': u'1.u9ec4u666fu707f JQQQF1rn 2. CZ629)> failed with URLError
如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。