This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push: new 78b6a9f26 feat(gcs): Convert TOO_MANY_REQUESTS to retryable Ratelimited (#5551) 78b6a9f26 is described below commit 78b6a9f26dbeb5118990d3140f1c636d8e54e719 Author: Xuanwo <git...@xuanwo.io> AuthorDate: Wed Jan 15 17:28:30 2025 +0800 feat(gcs): Convert TOO_MANY_REQUESTS to retryable Ratelimited (#5551) --- core/src/services/gcs/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/services/gcs/error.rs b/core/src/services/gcs/error.rs index 1410c4fa0..187f0de5b 100644 --- a/core/src/services/gcs/error.rs +++ b/core/src/services/gcs/error.rs @@ -58,6 +58,7 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error { StatusCode::PRECONDITION_FAILED | StatusCode::NOT_MODIFIED => { (ErrorKind::ConditionNotMatch, false) } + StatusCode::TOO_MANY_REQUESTS => (ErrorKind::RateLimited, true), StatusCode::INTERNAL_SERVER_ERROR | StatusCode::BAD_GATEWAY | StatusCode::SERVICE_UNAVAILABLE