New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win8 pyspider HTTP 599: Resolving timed out after 20000 milliseconds #552

Closed
laughing429 opened this Issue Oct 9, 2016 · 8 comments

Comments

Projects
None yet
3 participants
@laughing429

laughing429 commented Oct 9, 2016

Hi binux:
the same code.
我在我本机win8上跑,就报这个错
[E 161009 16:20:38 base_handler:195] HTTP 599: Resolving timed out after 20000 milliseconds
Traceback (most recent call last):
File "c:\users\lyu\anaconda2\lib\site-packages\pyspider\libs\base_handler.py", line 188, in run_task
result = self._run_task(task, response)
File "c:\users\lyu\anaconda2\lib\site-packages\pyspider\libs\base_handler.py", line 167, in _run_task
response.raise_for_status()
File "c:\users\lyu\anaconda2\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

但是在ubuntu上就没有任何问题。请问是什么原因呢?是不是win8上的配置要改什么?
谢谢!

@binux

This comment has been minimized.

Owner

binux commented Oct 9, 2016

It's DNS error, does it happen on every websites?

@laughing429

This comment has been minimized.

laughing429 commented Oct 9, 2016

yes, I have tried some websites, such as baidu, scrapy.org. But the error is the same.

@binux

This comment has been minimized.

Owner

binux commented Oct 9, 2016

Do you have proxy globally set on windows? Can you crawl websites with IP like http://93.184.216.34/ (it should return 404)

@laughing429

This comment has been minimized.

laughing429 commented Oct 9, 2016

我没有设置代理。
我试了您说的这个IP 确实返回了404
我又试了一个我们公司的ip,返回的是没有权限。我用的google chrome

@laughing429

This comment has been minimized.

laughing429 commented Oct 9, 2016

In my office, one colleague use win7. He don't meet this error.

@binux

This comment has been minimized.

Owner

binux commented Oct 9, 2016

You can access website via IP?
There is something wrong with DNS -> libcurl -> pyspider on your system, but I don't know the exact issue. You could investigate deeper through this path.

@laughing429

This comment has been minimized.

laughing429 commented Oct 9, 2016

OK, thank you ! I will have a try.

@binux binux closed this Dec 29, 2016

@wuwayne

This comment has been minimized.

wuwayne commented Nov 6, 2017

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment