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

boto3.client("s3").head_bucket does not throw NoSuchBucket as per documentation #726

Closed
tim-finnigan opened this issue Apr 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation s3 service-api This issue pertains to the AWS API service-docs Issue relates to missing information in service documentation

Comments

@tim-finnigan
Copy link

tim-finnigan commented Apr 24, 2024

Original issue here: boto/boto3#4092

ref: P127336178

@tim-finnigan tim-finnigan added bug Something isn't working documentation Improvements or additions to documentation service-api This issue pertains to the AWS API service-docs Issue relates to missing information in service documentation s3 labels Apr 24, 2024
@tim-finnigan tim-finnigan self-assigned this Apr 24, 2024
@tim-finnigan
Copy link
Author

Thanks for sharing those, here's another related issue: #255. We heard back from an S3 documentation writer who updated this page: https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html

This is now highlighted in a Note for better visibility:

image

So while the error below is documented:

image

It cannot be handled client-side due to the limitations described in the Note. Please use the Provide feedback to send any additional feedback directly to the S3 team regarding this.

Copy link

github-actions bot commented May 9, 2024

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@anentropic
Copy link

So... this will never get fixed?

The documentation change in API_HeadBucket does nothing to clarify the situation for Boto3 users who find a NoSuchBucket exception class on the S3 client instance that never gets raised. To all intents and purposes it still looks like the thing you should catch for the 404 case.

Is it all so auto-generated that it's impossible to put a specific note in the Boto3 docs?

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

No branches or pull requests

2 participants