代码拉取完成,页面将自动刷新
Caused by: org.spiderflow.core.expression.ExpressionError$TemplateException: Error (1): Couldn't call method 'getBytes' with arguments '[]' on object of type 'HttpResponse'.
at org.spiderflow.core.expression.ExpressionError.error(ExpressionError.java:53)
at org.spiderflow.core.expression.parsing.Ast$MethodCall.evaluate(Ast.java:1203)
at org.spiderflow.core.expression.parsing.Ast$MemberAccess.evaluate(Ast.java:951)
... 25 common frames omitted
Caused by: java.lang.RuntimeException: Couldn't call method 'getBytes' with arguments '[]' on object of type 'HttpResponse'.
at org.spiderflow.core.expression.interpreter.JavaReflection.callMethod(JavaReflection.java:327)
at org.spiderflow.core.expression.parsing.Ast$MethodCall.evaluate(Ast.java:1201)
... 26 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.spiderflow.core.expression.interpreter.JavaReflection.callMethod(JavaReflection.java:324)
... 27 common frames omitted
Caused by: java.lang.RuntimeException: org.jsoup.UncheckedIOException: java.io.IOException: Premature EOF
at org.spiderflow.core.io.HttpResponse.getBytes(HttpResponse.java:85)
... 31 common frames omitted
Caused by: org.jsoup.UncheckedIOException: java.io.IOException: Premature EOF
at org.jsoup.helper.HttpConnection$Response.prepareByteData(HttpConnection.java:977)
at org.jsoup.helper.HttpConnection$Response.bodyAsBytes(HttpConnection.java:996)
at org.spiderflow.core.io.HttpResponse.getBytes(HttpResponse.java:83)
... 31 common frames omitted
Caused by: java.io.IOException: Premature EOF
at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:565)
at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3468)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at org.jsoup.internal.ConstrainableInputStream.read(ConstrainableInputStream.java:64)
at org.jsoup.internal.ConstrainableInputStream.readToByteBuffer(ConstrainableInputStream.java:86)
at org.jsoup.helper.DataUtil.readToByteBuffer(DataUtil.java:252)
at org.jsoup.helper.HttpConnection$Response.prepareByteData(HttpConnection.java:975)
... 33 common frames omitted
暂时解决办法把这个代码注释掉
this.connection.ignoreContentType(true);
this.connection.ignoreHttpErrors(true);
// this.connection.maxBodySize(0);
Response response = connection.execute();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论