boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
8.99k stars 1.86k forks source link

An error occurred (403) when calling the HeadObject operation: Forbidden for missing field #4138

Closed DJ-C closed 4 months ago

DJ-C commented 4 months ago

Describe the feature

With buckets enabled with "Requester Pays" feature, missing --request-payer flag results in fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden. It takes a while to figure reason so providing a helpful message can be helpful.

Use Case

It might be frustrating to get access denied instead of missing required field message.

Proposed Solution

No response

Other Information

No response

Acknowledgements

SDK version used

Boto3

Environment details (OS name and version, etc.)

Mac, Linux

tim-finnigan commented 4 months ago

Hi @DJ-C thanks for reaching out. You referenced an AWS CLI parameter but this repository is for the Boto3 Python SDK. Either way, both the CLI and Boto3 use the S3 HeadObject API, so we would need to reach out to the S3 team to review a request involving the API. Please create a new issue in our cross-SDK repository detailing the steps to reproduce for further action on this issue.

github-actions[bot] commented 4 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.