1

Exceptions/RescoSoapException

From Resco's Wiki
Jump to navigation Jump to search
Warning Work in progress! We are in the process of updating the information on this page. Subject to change.

RescoSoapException is one of the most common exceptions that can appear in the log files of Resco mobile apps.

About this exception

Resco uses this exception to denote server error response in a format understood by Resco mobile apps. Behind the scenes, it's an HTTP error 500 (Internal Server Error) that includes a SOAP error response; that's the reason for the exception name.

What is specific about this exception is that it contains selected details from the server error response. These details are listed under <soap> tag, for example

<soap>"error" : "invalid_grant", "error_description" : "Token has been expired or revoked."</soap>

You should read them as

error = invalid_grant
error_description = "Token has been expired or revoked."

Handling

  • Some server errors are transient; an immediate condition of the server didn't allow it to fulfill your request. Try again later.
  • Server errors often require a server administrator to step in and remedy the problem.
  • When you encounter HTTP error 500 (internal server error), many things could have gone wrong. Fortunately, the exception includes additional details enclosed in <soap> tags. If the immediate exception text does not explain the problem, analyze SOAP.






Was this information helpful? How can we improve?