You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
APIs return errors as JSON objects, usually with an error code and a message. Retrofit2 that we use for making API calls doesn't deserialize these but they're available in the response.errorBody().
Add an error model and a method to deserialize errors so the message can be made visible to the user.
APIs return errors as JSON objects, usually with an error code and a message. Retrofit2 that we use for making API calls doesn't deserialize these but they're available in the
response.errorBody()
.Add an error model and a method to deserialize errors so the message can be made visible to the user.
Refs:
The text was updated successfully, but these errors were encountered: