Skip to content

etag is not a required object property in the S3 API, but S3Client assumes it will always be present #582

Description

@srstsavage

Some S3 providers may not provide the non-required etag on Objects, but currently S3Client's _get_metadata assumes that ETag will always be present on the HEAD response.

https://docs.aws.amazon.com/AmazonS3/latest/API/API_Object.html

"etag": data["ETag"],

If an S3 client doesn't return ETag on the HeadObject, this results in KeyError: 'ETag' when trying to open an S3Path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions