Open jingzhanwu opened 3 years ago
下载时出错:Unexpected status line: ,但浏览器中可以正常下载,下面是异常信息
java.net.ProtocolException: Unexpected status line: 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.StatusLine.parse(StatusLine.java:69) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.RealCall.execute(RealCall.java:92) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.connection.DownloadOkHttp3Connection.execute(DownloadOkHttp3Connection.java:57) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.connect.CallServerInterceptor.interceptConnect(CallServerInterceptor.java:34) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.connect.HeaderInterceptor.interceptConnect(HeaderInterceptor.java:87) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.BreakpointInterceptor.interceptConnect(BreakpointInterceptor.java:48) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.RetryInterceptor.interceptConnect(RetryInterceptor.java:40) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.start(DownloadChain.java:180) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.run(DownloadChain.java:247) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.lang.Thread.run(Thread.java:919)
下载时出错:Unexpected status line: ,但浏览器中可以正常下载,下面是异常信息
java.net.ProtocolException: Unexpected status line: 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.StatusLine.parse(StatusLine.java:69) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.406 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:254) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at okhttp3.RealCall.execute(RealCall.java:92) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.connection.DownloadOkHttp3Connection.execute(DownloadOkHttp3Connection.java:57) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.connect.CallServerInterceptor.interceptConnect(CallServerInterceptor.java:34) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.connect.HeaderInterceptor.interceptConnect(HeaderInterceptor.java:87) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.BreakpointInterceptor.interceptConnect(BreakpointInterceptor.java:48) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.interceptor.RetryInterceptor.interceptConnect(RetryInterceptor.java:40) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.processConnect(DownloadChain.java:215) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.start(DownloadChain.java:180) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at com.liulishuo.okdownload.core.download.DownloadChain.run(DownloadChain.java:247) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2020-12-13 22:04:29.407 20213-20213/com.party.platform W/System.err: at java.lang.Thread.run(Thread.java:919)