Skip to content

Commit

Permalink
fix(gcp service): retry on unauthorized (#18586)
Browse files Browse the repository at this point in the history
Retry on unauthorized

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
  • Loading branch information
StephenWakely authored Sep 19, 2023
1 parent c47e65f commit 2e018d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sinks/gcs_common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 2e018d4

Please sign in to comment.