aws / aws-sdk-go-v2

AWS SDK for the Go programming language.
https://aws.github.io/aws-sdk-go-v2/docs/
Apache License 2.0
2.66k stars 636 forks source link

S3: HeadObject treats NoSuchKey as an un-modeled error #974

Closed skotambkar closed 3 years ago

skotambkar commented 3 years ago

HeadObject operation does not correctly map to its modeled error - NoSuchKey.

Root cause- unknown

Possible root cause:

  1. Miss while converting smithy-model into smithy-go operation shape.

    • operationShape.getErrors() returns an empty stream.
  2. Incorrect modeling in smithy-models

Other operations like GetObject work fine with NoSuchKey exception

skotambkar commented 3 years ago

Known issue with s3 model. Smithy will try to fix this by engaging s3 model.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

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.