cityofaustin / knackpy

A Python client for interacting with Knack applications
https://cityofaustin.github.io/knackpy/docs/user-guide/
Other
39 stars 17 forks source link

Handle 5xx errors like timeouts #79

Closed johnclary closed 3 years ago

johnclary commented 3 years ago

The Knackpy APIs support a max_attempts value which will retry on request timeouts up to the number of max attempts. Unfortunately, 500 errors are not handled this way, and the Knack API has a terrible habit of returning 503 errors in particular. We should retry on requests that fail with any 5xx error.