Thursday, January 1, 2015

[Python2.7][Resolved] Caught exception reading instance data Traceback (most recent call last): utils.py line 210, in retry_url

Full error message:
2016-03-02 10:34:56 [boto] ERROR: Caught exception reading instance data
Traceback (most recent call last):  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\site-packages\boto\utils.py", line 210, in retry_url r = opener.open(req, timeout=timeout)
  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", lin
e 431, in open response = self._open(req, data)
  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", lin
e 449, in _open  '_open', req)
  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", lin
e 409, in _call_chain result = func(*args)
  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", lin
e 1227, in http_open return self.do_open(httplib.HTTPConnection, req)
  File "C:\Users\xxxlll\AppData\Local\Continuum\Anaconda2\lib\urllib2.py", lin
e 1197, in do_open raise URLError(err)
URLError: <urlopen error timed out>
2016-03-02 10:34:56 [boto] ERROR: Unable to read instance data, giving up
2016-03-02 10:34:56 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddl
eware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
2016-03-02 10:34:56 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddlewa
re, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
2016-03-02 10:34:56 [scrapy] INFO: Enabled item pipelines:
2016-03-02 10:34:56 [scrapy] INFO: Spider opened
2016-03-02 10:34:56 [scrapy] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 i
tems (at 0 items/min)
2016-03-02 10:34:56 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2016-03-02 10:34:57 [scrapy] DEBUG: Crawled (200) <GET http://www.dmoz.org/Compu
ters/Programming/Languages/Python/Books/> (referer: None)
2016-03-02 10:34:57 [scrapy] DEBUG: Crawled (200) <GET http://www.dmoz.org/Compu
ters/Programming/Languages/Python/Resources/> (referer: None)
2016-03-02 10:34:58 [scrapy] INFO: Closing spider (finished)
2016-03-02 10:34:58 [scrapy] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 514,
 'downloader/request_count': 2,
 'downloader/request_method_count/GET': 2,
 'downloader/response_bytes': 16284,
 'downloader/response_count': 2,
 'downloader/response_status_count/200': 2,
 'finish_reason': 'finished',
 'finish_time': datetime.datetime(2016, 3, 2, 2, 34, 58, 46000),
 'log_count/DEBUG': 4,
 'log_count/ERROR': 2,
 'log_count/INFO': 7,
 'response_received_count': 2,
 'scheduler/dequeued': 2,
 'scheduler/dequeued/memory': 2,
 'scheduler/enqueued': 2,
 'scheduler/enqueued/memory': 2,
 'start_time': datetime.datetime(2016, 3, 2, 2, 34, 56, 800000)}
2016-03-02 10:34:58 [scrapy] INFO: Spider closed (finished)
To stop the error message, you should edit your settings.py at your project, for example, in this path:
C:\Python27\Scripts\tutorial\tutorial\settings.py
And them add a line into this file:
DOWNLOAD_HANDLERS = {'s3': None,} 

Run the project again finally.

No comments :

Post a Comment