Skip to content
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

用gecco爬取app.mi.com会timeout,但是我用gecco自带的apache httpclient却没有这个问题 #98

Closed
wxxlamp opened this issue Mar 26, 2021 · 3 comments

Comments

@wxxlamp
Copy link

wxxlamp commented Mar 26, 2021

[INFO][2021-03-26 14:24:47 056][com.geccocrawler.gecco.downloader.proxy.FileProxys]-[proxys not load]
[INFO][2021-03-26 14:24:52 718][org.apache.http.impl.execchain.RetryExec]-[I/O exception (org.apache.http.conn.ConnectTimeoutException) caught when processing request to {s}->https://app.mi.com:443: Connect to app.mi.com:443 [app.mi.com/123.125.102.202, app.mi.com/111.202.1.247] failed: connect timed out]
[INFO][2021-03-26 14:24:52 736][org.apache.http.impl.execchain.RetryExec]-[Retrying request to {s}->https://app.mi.com:443]
[INFO][2021-03-26 14:24:54 753][org.apache.http.impl.execchain.RetryExec]-[I/O exception (org.apache.http.conn.ConnectTimeoutException) caught when processing request to {s}->https://app.mi.com:443: Connect to app.mi.com:443 [app.mi.com/123.125.102.202, app.mi.com/111.202.1.247] failed: connect timed out]
[INFO][2021-03-26 14:24:54 754][org.apache.http.impl.execchain.RetryExec]-[Retrying request to {s}->https://app.mi.com:443]
[INFO][2021-03-26 14:24:56 775][org.apache.http.impl.execchain.RetryExec]-[I/O exception (org.apache.http.conn.ConnectTimeoutException) caught when processing request to {s}->https://app.mi.com:443: Connect to app.mi.com:443 [app.mi.com/123.125.102.202, app.mi.com/111.202.1.247] failed: connect timed out]
[INFO][2021-03-26 14:24:56 781][org.apache.http.impl.execchain.RetryExec]-[Retrying request to {s}->https://app.mi.com:443]
[ERROR][2021-03-26 14:24:58 799][com.geccocrawler.gecco.spider.Spider]-[https://app.mi.com/category/1 ERROR : com.geccocrawler.gecco.downloader.DownloadTimeoutExceptionorg.apache.http.conn.ConnectTimeoutException: Connect to app.mi.com:443 [app.mi.com/123.125.102.202, app.mi.com/111.202.1.247] failed: connect timed out]
[INFO][2021-03-26 14:25:01 254][com.geccocrawler.gecco.GeccoEngine]-[close gecco!]

@xtuhcy
Copy link
Owner

xtuhcy commented Mar 26, 2021

是不是header什么的不一样

@wxxlamp
Copy link
Author

wxxlamp commented Mar 26, 2021

应该是我的url写的有问题,https://app.mi.com/category/1#page=1,中间加了#好像一直timeout

@wxxlamp
Copy link
Author

wxxlamp commented Mar 26, 2021

不过我换了个url就成功了

@wxxlamp wxxlamp closed this as completed Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants