-
Notifications
You must be signed in to change notification settings - Fork 7.3k
NetworkOnMainThreadException when unsubscribing during network call #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is an OkHttp thing. See square/okhttp#869 and square/okhttp#1592. For now, use |
i prefer to use retrofit Full level logger: ".setLogLevel(LogLevel.FULL)"
|
Before a few days ago in 'Google Summit' discussed about security and SSL Connection, https://www.youtube.com/watch?v=YYin_N6xXxQ |
This will be fixed in OkHttp 2.7. Retrofit 2 will not be released until OkHttp 2.7 is out. Tracked by #1069. |
still not fixed |
10-10 14:32:04.564 6843-7071/me.mint.debug D/MintFunctions: android.os.NetworkOnMainThreadException |
That's not a Retrofit or OkHttp problem. |
Just use RxJavaCallAdapterFactory.createAsync() which creates asynchronous observables.
|
Stack trace:
Code
Dependencies:
The text was updated successfully, but these errors were encountered: