From 99fd440693d62c40123751de776e99771e7fcb57 Mon Sep 17 00:00:00 2001 From: Stephen Wakely Date: Mon, 11 Sep 2023 15:45:25 +0200 Subject: [PATCH] Retry on unauthorized Signed-off-by: Stephen Wakely --- src/sinks/gcs_common/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sinks/gcs_common/config.rs b/src/sinks/gcs_common/config.rs index 51a73c2bfeb4c..880d9f788b459 100644 --- a/src/sinks/gcs_common/config.rs +++ b/src/sinks/gcs_common/config.rs @@ -152,6 +152,7 @@ impl RetryLogic for GcsRetryLogic { let status = response.inner.status(); match status { + StatusCode::UNAUTHORIZED => RetryAction::Retry("unauthorized".into()), StatusCode::TOO_MANY_REQUESTS => RetryAction::Retry("too many requests".into()), StatusCode::NOT_IMPLEMENTED => { RetryAction::DontRetry("endpoint not implemented".into())