Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum aws_sdk_s3::error::GetObjectErrorKind doesn't include NoSuchBucket #364

Open
jmklix opened this issue Oct 3, 2022 · 1 comment
Open
Assignees
Labels
bug Something isn't working s3 service-api This issue pertains to the AWS API

Comments

@jmklix
Copy link
Member

jmklix commented Oct 3, 2022

Transfered from awslabs/aws-sdk-rust: awslabs/aws-sdk-rust#501

What is the problem?

Per https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/error/enum.GetObjectErrorKind.html, enum aws_sdk_s3::error::GetObjectErrorKind doesn't include NoSuchBucket. However, the aws-cli call aws s3api get-object --bucket NoSuchBucket --key file.txt /dev/null produces An error occurred (NoSuchBucket) when calling the GetObject operation: The specified bucket does not exist.

Version

aws-sdk-s3 v0.9.0

Platform

Darwin localhost Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64

AWS Services

S3

Description

I would expect aws_sdk_s3::error::GetObjectErrorKind (and possibly other Kinds) to include the NoSuchBucket variant.

Logs

No response

@jmklix jmklix added service-api This issue pertains to the AWS API s3 labels Oct 3, 2022
@jmklix jmklix self-assigned this Oct 3, 2022
@jmklix
Copy link
Member Author

jmklix commented Oct 3, 2022

P62314171

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working s3 service-api This issue pertains to the AWS API
Projects
None yet
Development

No branches or pull requests

1 participant