Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

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
Contributor

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
Contributor Author

Thanks for sharing those, here's another related issue: aws/aws-sdk-go-v2#2880. 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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