Description
SDK you're using (please complete the following information):
4.1.4
Is your feature request related to a problem? Please describe.
We regularly get unspecified "com.xero.api.XeroServerErrorException: Internal Server Errors" on API calls. In the last 2 weeks we've had 13 instances. They are not related to a specific call - when we manually retry we normally succeed second time.
This probably wouldn't matter for many atomic use cases, but we have functionality that runs a series of calls over the space of 30 minutes. If we get an internal server error we stop, because there is an unknown problem. We're are now looking at creating a retry solution within our client.
Describe the solution you'd like
The Xero client could include a default and configurable retry strategy for failed API calls.
Describe alternatives you've considered
We're planning on building our own solution.
Additional context
Ideally the Xero API would be more specific about any issues. At the moment we could retry on all internal server errors, and our experience suggest this is sensible. However if there was some specific information at Xero that could indicate if the client should retry again or not, that would be ideal.