pyspider 访问网址出现HTTP 599 resolving timed out,改成ip数字地址就可以

新手上路,请多包涵

[E 170111 22:17:24 base_handler:195] HTTP 599: Resolving timed out after 20000 milliseconds

Traceback (most recent call last):
  File "c:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 188, in run_task
    result = self._run_task(task, response)
  File "c:\python27\lib\site-packages\pyspider\libs\base_handler.py", line 167, in _run_task
    response.raise_for_status()
  File "c:\python27\lib\site-packages\pyspider\libs\response.py", line 190, in raise_for_status
    raise http_error
HTTPError: HTTP 599: Resolving timed out after 20000 milliseconds


浏览器访问网址正常,代码里边的网址改成ip数字也正常,看样子是dns解析失败的问题 不知道如何解决
阅读 4.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏