jeasonlzy / okhttp-OkGo

OkGo - 3.0 震撼来袭,该库是基于 Http 协议,封装了 OkHttp 的网络请求框架,比 Retrofit 更简单易用,支持 RxJava,RxJava2,支持自定义缓存,支持批量断点下载管理和批量上传管理功能
Apache License 2.0
10.6k stars 2.55k forks source link

unexpected end of stream #478

Open sheilazxx opened 6 years ago

sheilazxx commented 6 years ago

10-09 01:38:00.185 18594-18647/com.shzx.zcyg W/System.err: java.net.ProtocolException: unexpected end of stream 10-09 01:38:00.185 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.internal.http1.Http1Codec$FixedLengthSource.read(Http1Codec.java:387) 10-09 01:38:00.185 18594-18647/com.shzx.zcyg W/System.err: at okio.RealBufferedSource$1.read(RealBufferedSource.java:430) 10-09 01:38:00.186 18594-18647/com.shzx.zcyg W/System.err: at java.io.InputStream.read(InputStream.java:101) 10-09 01:38:00.186 18594-18647/com.shzx.zcyg W/System.err: at com.lzy.okgo.utils.IOUtils.write(IOUtils.java:278) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at com.lzy.okgo.utils.IOUtils.toByteArray(IOUtils.java:175) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at com.lzy.okgo.interceptor.HttpLoggingInterceptor.logForResponse(HttpLoggingInterceptor.java:170) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at com.lzy.okgo.interceptor.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:101) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:135) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 10-09 01:38:00.187 18594-18647/com.shzx.zcyg W/System.err: at java.lang.Thread.run(Thread.java:761)

MickeyDaddy commented 5 years ago

我也偶现这个问题,请问有解决办法吗