RetailMeNot / TestRailSDK

TestRail integration with Java WebDriver implementation.
MIT License
25 stars 27 forks source link

Handle 429 response #22

Closed mdharamadas closed 8 years ago

mdharamadas commented 8 years ago

With recent upgrade to TestRail API, the API is rate limited on TestRail Hosted and may throttle requests. TestRail might also return a 429 Too Many Requests response which the users are expected to handle. Such a response also includes a Retry-After header indicating how many seconds to wait before allowed to submit the next request.

The SDK needs to be updated to handle this response and retry the request based on the Retry-After header value.

vinceis1337 commented 8 years ago

I have insufficient access so I cannot add mdharamadas as the assignee for this issue. However, let it be noted that he is working on this issue himself.

vinceis1337 commented 8 years ago

https://github.com/RetailMeNot/TestRailSDK/pull/23 adds this feature, closing ticket.