Kevin Janvier Chinabalire
12/21/2018, 8:43 AMdisposable!!.add(service.login(user)
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({ response ->
handleResponse(response)
}, { error ->
Tools.log("Error ${error.message}")
handlerError(error)
register_progress!!.dismiss()
})
)
My problem i keep gettting on error … even if the call is successful ….i get nullgildor
12/21/2018, 8:44 AMKevin Janvier Chinabalire
12/21/2018, 9:00 AMif (login.success) {
//save the details
Apps.pref.token = login.token
//save into the local DB
saveDetails(login)
} else {
//display a message
// error message here
}
response
is not being called when the result false .. and i have a check theregildor
12/21/2018, 9:01 AMon error is being calledAnd what is in this error? What is throwable type and message?
Kevin Janvier Chinabalire
12/21/2018, 9:02 AMHTTP 401 Unauthorized
gildor
12/21/2018, 9:05 AMKevin Janvier Chinabalire
12/21/2018, 9:43 AMAlfian Akmal Hanantio
12/22/2018, 9:33 AMKevin Janvier Chinabalire
02/26/2019, 5:52 AM