code and requestId of a failure. If your client timed out, check the original request before you retry because it may still finish. Every code and its fix is in Errors.
Start with the status
Retry
Retry a call only whenretryable is true. If it is missing, retry only 429, 500, 502, 503 and 504.
- Wait
retryAfterSecondswhen it is present. Otherwise wait 0.5 seconds, then double the wait for each retry. Add random jitter so workers do not retry together. - Stop after 3 retries, or when the wait is over 60 seconds. A
freeLimitwait can be hours, so get a key instead. - Log
requestIdon the last error.
retryable, retry eligible network errors, and stop after maxRetries retries (2 by default) or a wait over 60 seconds. A write that may have run is retried only when it can be replayed safely. API errors carry code, retryable and the request ID.
Stophy(max_retries=3), and catch StophyError with error.code and error.request_id.
Report a problem
If an answer is wrong or differs from these docs, send feedback with theX-Request-ID. For support, email support@stophy.dev with it. GET /v1/logs/{id} shows what a request cost.