Skip to content

Commit fbd8a91

Browse files
authored
Revert "[s3_meta_request]: Retry on ExpiredToken" (#518)
1 parent 7d2d4b3 commit fbd8a91

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

include/aws/s3/s3.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ enum aws_s3_errors {
4949
AWS_ERROR_S3_RECV_FILE_ALREADY_EXISTS,
5050
AWS_ERROR_S3_RECV_FILE_NOT_FOUND,
5151
AWS_ERROR_S3_REQUEST_TIMEOUT,
52-
AWS_ERROR_S3_TOKEN_EXPIRED,
5352

5453
AWS_ERROR_S3_END_RANGE = AWS_ERROR_ENUM_END_RANGE(AWS_C_S3_PACKAGE_ID)
5554
};

source/s3.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ static struct aws_error_info s_errors[] = {
5353
AWS_DEFINE_ERROR_INFO_S3(AWS_ERROR_S3_RECV_FILE_ALREADY_EXISTS, "File already exists, cannot create as new."),
5454
AWS_DEFINE_ERROR_INFO_S3(AWS_ERROR_S3_RECV_FILE_NOT_FOUND, "The receive file doesn't exist, cannot create as configuration required."),
5555
AWS_DEFINE_ERROR_INFO_S3(AWS_ERROR_S3_REQUEST_TIMEOUT, "RequestTimeout error received from S3."),
56-
AWS_DEFINE_ERROR_INFO_S3(AWS_ERROR_S3_TOKEN_EXPIRED, "Token expired - needs a refresh."),
5756
};
5857
/* clang-format on */
5958

source/s3_util.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,6 @@ int aws_s3_crt_error_code_from_recoverable_server_error_code_string(struct aws_b
683683
return AWS_ERROR_S3_REQUEST_TIMEOUT;
684684
}
685685

686-
if (aws_byte_cursor_eq_c_str_ignore_case(&error_code_string, "ExpiredToken") ||
687-
aws_byte_cursor_eq_c_str_ignore_case(&error_code_string, "TokenRefreshRequired")) {
688-
return AWS_ERROR_S3_TOKEN_EXPIRED;
689-
}
690-
691686
return AWS_ERROR_UNKNOWN;
692687
}
693688

0 commit comments

Comments
 (0)