|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Traceback (most recent call last):
File "COLL_***_***.py", line 83, in <module>
content = RequestGet(url,heard,timeout) # request old json
File "COLL_***_***.py", line 11, in RequestGet
r = requests.get(url,headers=heard,timeout=timeout)
File "/usr/lib/python2.7/site-packages/requests/api.py", line 68, in get
return request('get', url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
response = session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 433, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='11.XX.XX.XX', port=443): Read timed out. (read timeout=0.001)
执行脚本报以上错误,有没有大佬帮忙解答下报错原因
在服务器单独使用curl -k ip+路径+key,可以正常访问并返回信息
V|Q:1076902594 |
|