pyspider 出现Could not contact DNS servers)?
这个问题 HTTP 599: Could not resolve: www.baidu.com (Could not contact DNS servers) 用ip没问题,搜索引擎内容没有合适的
python2.7 win10 切换python3.6之后会出现操作数过多的问题,故改回2.7
本地localhost也不行
完整报错
[E 180322 10:58:07 base_handler:203] HTTP 599: Could not resolve: www.hao123.com (Could not contact DNS servers)
Traceback (most recent call last):
File "g:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 196, in run_task
result = self._run_task(task, response)
File "g:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 175, in _run_task
response.raise_for_status()
File "g:\python27\lib\site-packages\pyspider\libs\response.py", line 172, in raise_for_status
six.reraise(Exception, Exception(self.error), Traceback.from_string(self.traceback).as_traceback())
File "g:\python27\lib\site-packages\pyspider\fetcher\tornado_fetcher.py", line 378, in http_fetch
response = yield gen.maybe_future(self.http_client.fetch(request))
File "g:\python27\lib\site-packages\tornado\httpclient.py", line 105, in fetch
self._async_client.fetch, request, **kwargs))
File "g:\python27\lib\site-packages\tornado\ioloop.py", line 582, in run_sync
return future_cell[0].result()
File "g:\python27\lib\site-packages\tornado\concurrent.py", line 260, in result
raise_exc_info(self._exc_info)
File "<string>", line 3, in raise_exc_info
Exception: HTTP 599: Could not resolve: www.hao123.com (Could not contact DNS servers)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论