Boto urllib2 URLError(捕获异常读取实例数据)

时间:2014-12-19 08:09:34

标签: python amazon-s3 urllib2 boto

我正在使用来自herecommon_crawl_index lib for python来从S3获取一些数据。

当我运行命令获取数据cci_lookup com.abc时,它出现如下错误。

我仍然得到输出,即查找域的网址列表,但我不知道错误发生的原因。

MainThread:2014-12-19 01:48:16,150:ERROR:utils:224 Caught exception reading instance data
Traceback (most recent call last):
  File "/home/deploy/anaconda/lib/python2.7/site-packages/boto/utils.py", line 211, in retry_url
    r = opener.open(req)
  File "/home/deploy/anaconda/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/home/deploy/anaconda/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/home/deploy/anaconda/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/home/deploy/anaconda/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/home/deploy/anaconda/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
URLError: <urlopen error timed out>
com.abc.www/forum/index.php/groupcp.php:http
com.abc.www/forum/index.php/includes/MLOtvHD:http
com.abc.www/forum/index.php/includes/blog.php:http
com.abc.www/forum/index.php/includes/content.php:http
com.abc.www/forum/index.php/includes/index.php:http

希望任何人都可以提供帮助!

0 个答案:

没有答案