zhou-you / RxEasyHttp

本库是一款基于RxJava2+Retrofit2实现简单易用的网络请求框架,结合android平台特性的网络封装库,采用api链式调用一点到底,集成cookie管理,多种缓存模式,极简https配置,上传下载进度显示,请求错误自动重试,请求携带token、时间戳、签名sign动态配置,自动登录成功后请求重发功能,3种层次的参数设置默认全局局部,默认标准ApiResult同时可以支持自定义的数据结构,已经能满足现在的大部分网络请求。
Apache License 2.0
3.13k stars 615 forks source link

The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.IndexOutOfBoundsException: Index: 20, Size: 20 at wh0.b(RxJavaPlugins.java:367) #206

Closed ghost closed 4 years ago

ghost commented 4 years ago

The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.IndexOutOfBoundsException: Index: 20, Size: 20 at wh0.b(RxJavaPlugins.java:367)

xx: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.net.SocketException: Connection reset at co0.b(RxJavaPlugins.java:9) at fh0$a.onError(ObservableUnsubscribeOn.java:2) at ng0$a.onError(ObservableSubscribeOn.java:1) at rz.onError(BasicFuseableObserver.java:4) at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onError(BodyObservable.java:2) at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:13) at fw.subscribe(Observable.java:14) at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:1) at fw.subscribe(Observable.java:14) at xe0.subscribeActual(ObservableMap.java:1) at fw.subscribe(Observable.java:14) at ng0$b.run(ObservableSubscribeOn.java:1) at nw$a.run(Scheduler.java:2) at xk0.run(ScheduledRunnable.java:2) at xk0.call(ScheduledRunnable.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:139) at wu0$b.read(Okio.java:4) at hu0$b.read(AsyncTimeout.java:2) at av0.a(RealBufferedSource.java:29) at av0.i(RealBufferedSource.java:1) at ws0.g(Http1Codec.java:1) at ws0.a(Http1Codec.java:34) at ls0.a(CallServerInterceptor.java:28) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ku.a(NoCacheInterceptor.java:3) at qs0.a(RealInterceptorChain.java:13) at ds0.a(ConnectInterceptor.java:7) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at vr0.a(CacheInterceptor.java:22) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ks0.a(BridgeInterceptor.java:22) at qs0.a(RealInterceptorChain.java:13) at ts0.a(RetryAndFollowUpInterceptor.java:13) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ku.a(NoCacheInterceptor.java:3) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at iu.a(HeadersInterceptor.java:6) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at hr0.a(RealCall.java:28) at hr0.execute(RealCall.java:9) at retrofit2.OkHttpCall.execute(OkHttpCall.java:18) at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:5) ... 14 more java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:209) at java.net.SocketInputStream.read(SocketInputStream.java:139) at wu0$b.read(Okio.java:4) at hu0$b.read(AsyncTimeout.java:2) at av0.a(RealBufferedSource.java:29) at av0.i(RealBufferedSource.java:1) at ws0.g(Http1Codec.java:1) at ws0.a(Http1Codec.java:34) at ls0.a(CallServerInterceptor.java:28) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ku.a(NoCacheInterceptor.java:3) at qs0.a(RealInterceptorChain.java:13) at ds0.a(ConnectInterceptor.java:7) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at vr0.a(CacheInterceptor.java:22) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ks0.a(BridgeInterceptor.java:22) at qs0.a(RealInterceptorChain.java:13) at ts0.a(RetryAndFollowUpInterceptor.java:13) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at ku.a(NoCacheInterceptor.java:3) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at iu.a(HeadersInterceptor.java:6) at qs0.a(RealInterceptorChain.java:13) at qs0.a(RealInterceptorChain.java:4) at hr0.a(RealCall.java:28) at hr0.execute(RealCall.java:9) at retrofit2.OkHttpCall.execute(OkHttpCall.java:18) at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:5) at fw.subscribe(Observable.java:14) at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:1) at fw.subscribe(Observable.java:14) at xe0.subscribeActual(ObservableMap.java:1) at fw.subscribe(Observable.java:14) at ng0$b.run(ObservableSubscribeOn.java:1) at nw$a.run(Scheduler.java:2) at xk0.run(ScheduledRunnable.java:2) at xk0.call(ScheduledRunnable.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

ghost commented 4 years ago

好像是连接提示超时之类的,但是为什么出导致程序崩溃呢,希望您有时间能帮忙分析处理下,最近发现有些设备还是会出现这种情况。