someone else exeperienced exceptions thrown by ret...
# coroutines
a
someone else exeperienced exceptions thrown by retrofit which are not caught by the try catch surounding the call ?
p
Which retrofit version are you using?
a
just updated to 2.6.1
p
And it’s still happening?
a
jep
p
Can you post the code where it throws and which exceptions are thrown?
a
Copy code
GlobalScope.launch(handler) {
            try {
                someSuspendingFunctionWhichAlsoCallsRetrofit()
            } catch (it: Throwable) {
                logError(it)
            }
        }
--> E/AndroidRuntime: FATAL EXCEPTION: main
catch and exceptionHandler are not called just get this Androidruntime exception (which should be a unknownhostexception, but is appreaently cut by android since some newer versions )
in the end i maed my retrofit client blocking an wrapped it myself in coroutines