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

请求忽略爬取a站开播状态出错并按照原计划继续爬取状态 #41

Closed
bluboy-official opened this issue May 19, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@bluboy-official
Copy link

大佬您好,我发现有的时候可能是因为网络波动或者说是因为别的什么问题容易出现以下报错:
发送GET请求出现异常!java.net.UnknownHostException: m.acfun.cn
java.net.UnknownHostException: m.acfun.cn
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at nicelee.bilibili.util.HttpRequestUtil.getContent(HttpRequestUtil.java:295)
at nicelee.bilibili.util.HttpRequestUtil.getContent(HttpRequestUtil.java:257)
at nicelee.bilibili.live.impl.RoomDealerAcfun.getRoomInfo(RoomDealerAcfun.java:48)
at nicelee.bilibili.Main.getRoomInfo(Main.java:173)
at nicelee.bilibili.Main.main(Main.java:78)
java.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Unknown Source)
at nicelee.bilibili.live.impl.RoomDealerAcfun.getRoomInfo(RoomDealerAcfun.java:55)
at nicelee.bilibili.Main.getRoomInfo(Main.java:173)
at nicelee.bilibili.Main.main(Main.java:78)
解析失败!!

像这样,但我发现立马关掉重开是不影响开播状态的爬取的,所以如果可以的话能否忽略这一错误呢?

@nICEnnnnnnnLee nICEnnnnnnnLee added the enhancement New feature or request label May 22, 2020
@nICEnnnnnnnLee nICEnnnnnnnLee added this to the V2.10.0 milestone May 22, 2020
@nICEnnnnnnnLee nICEnnnnnnnLee added the pending Things under consideration, not sure whether to be worked on label May 23, 2020
@nICEnnnnnnnLee nICEnnnnnnnLee removed the pending Things under consideration, not sure whether to be worked on label Jun 13, 2020
@github-actions
Copy link

由于长期没有状态更新,该问题自动关闭。如有需要可重新打开。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants