XeroAPI/XeroAPI.Net — Issue #15: Change of behaviour for Rate Limiting
Author: MatthewSteeples
Created: 2012-02-22 19:04:06+00:00
State: open

Sometime over the past few months the behaviour of the Rate Limiting section of the API has changed. Our application catches an OAuthException which was what was thrown. This seems to have changed in the last API deploy and the library now throws an ApiResponseException with a ServiceUnavailable message. I've not been able to find any changes in the .net API that would cause this change. Email correspondence with support suggests that this is expected behaviour.

Current Stack Trace:

XeroApi.Exceptions.ApiResponseException: Xero API returned error http code: ServiceUnavailable
at XeroApi.Integration.IntegrationProxy.FindElements(IApiQueryDescription apiQueryDescription)
at XeroApi.Linq.ApiQueryProvider.Execute(Expression expression)

Current Response content:

oauth_problem=rate%20limit%20exceeded&oauth_problem_advice=please%20wait%20before%20retrying%20the%20xero%20api