diff --git a/crates/common/src/provider/retry.rs b/crates/common/src/provider/retry.rs index 2137dedbdc68..e7277bd4b198 100644 --- a/crates/common/src/provider/retry.rs +++ b/crates/common/src/provider/retry.rs @@ -79,6 +79,12 @@ fn should_retry_transport_level_error(error: &TransportErrorKind) -> bool { match error { // Missing batch response errors can be retried. TransportErrorKind::MissingBatchResponse(_) => true, + TransportErrorKind::Custom(err) => { + // currently http error responses are not standard in alloy + let msg = err.to_string(); + msg.contains("429 Too Many Requests") + } + // If the backend is gone, or there's a completely custom error, we should assume it's not // retryable. _ => false,