Rxjava: UndeliverableException wraps retrofit2.adapter.rxjava2.HttpException

Created on 24 Mar 2017  路  3Comments  路  Source: ReactiveX/RxJava

at work we upgraded to RXJava 2.0.6, we are confused why a retrofit2.adapter.rxjava2.HttpException gets wrapped into an UndeliverableException, does anybody see the same issue or can anybody shed a light on why that is happening? Thanks.

2.x Question

Most helpful comment

Yes, since 2.0.6, many undeliverable exceptions get wrapped into UdeliverableException. The release log explains it and there is a recent update to the wiki as well.

All 3 comments

I work with @francorolando . Let me elaborate a little bit. Our app is unexpectedly crashing when we don't set an RxJavaPlugins error handler. An UndeliverableException ends up crashing the app. If we set an error handler, then the app doesn't crash, and the exception is able to be delivered to the subscriber just fine.

Is this expected behavior?

Yes, since 2.0.6, many undeliverable exceptions get wrapped into UdeliverableException. The release log explains it and there is a recent update to the wiki as well.

thanks.

Was this page helpful?
0 / 5 - 0 ratings