Skip to content

Commit

Permalink
fix(gcp service): retry on unauthorized (vectordotdev#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 addc46e commit 75d03b3
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 75d03b3

Please sign in to comment.