I am using coroutines and retrofit 2.6.1 for API requests since I heard that there is a default support for coroutines with retrofit as from 2.6.0 . But handling exceptions has been an issue. I don't know much about CouroutineExceptionHandler. If there is a better way of writing the code below, please do help out. I don't want to emit null.. My app actually crashes when I make an API call without the try catch with internet turned off..