我现在用 aws ,出现了很多 requests 请求的超时错误
一个具体的错误示例是这个样子的: res = requests.get(dev_url, timeout=1) File "/home/ymserver/virtualenv/wind/local/lib/python2.7/site-packages/requests/api.py", line 70, in get return request('get', url, params=params, **kwargs) File "/home/ymserver/virtualenv/wind/local/lib/python2.7/site-packages/requests/api.py", line 56, in request return session.request(method=method, url=url, **kwargs) File "/home/ymserver/virtualenv/wind/local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request resp = self.send(prep, **send_kwargs) File "/home/ymserver/virtualenv/wind/local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send r = adapter.send(request, **kwargs) File "/home/ymserver/virtualenv/wind/local/lib/python2.7/site-packages/requests/adapters.py", line 499, in send raise ReadTimeout(e, request=request) ReadTimeout: HTTPConnectionPool(host='api.adzshd.com', port=80): Read timed out. (read timeout=1)
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.