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
If my server responds with a 400 Bad Request, this client processes it as an exception. How do i then get access to the body of the response. This exception message only includes the "400" code. I would also like the text which describes the error (example: wrong password")
I'm looking for the text that's in the ReponseHelper downloadHandler. I see the desired text when I log it from inside the Error method ReponseHelper, but how do I get it from the Catch above? Thanks!
public string Error
{
get {
Debug.Log("response helper text " + Request.downloadHandler.text);
return Request.error;
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If my server responds with a 400 Bad Request, this client processes it as an exception. How do i then get access to the body of the response. This exception message only includes the "400" code. I would also like the text which describes the error (example: wrong password")
I'm looking for the text that's in the ReponseHelper downloadHandler. I see the desired text when I log it from inside the Error method ReponseHelper, but how do I get it from the Catch above? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions