-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Retireve message when failure from REST API. #563
Comments
Hello. onRejected = {
console.log((it as? RemoteRequestException).response.body)
} |
there is something like this after
this is the console output |
There is another (it as? RemoteRequestException)?.response?.json()?.then {
console.log(it)
} |
ok something like this worked (it as? RemoteRequestException)?.response?.json()?.then {
console.log(it.asDynamic().message)
} thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to get the error message that is from REST server response, but I can't do it.
I have rest call like that
and onRejected is defined like that
but the it.message appears to be empty string, and in fact cause is null.
My rest response is
and this json is absolutely expected by me.
Is this error or am i missing something?
The text was updated successfully, but these errors were encountered: