Skip to content

Can't upload empty file to S3 #23

Description

@arogozhnikov

Hello, thx for porting object-store to python!

I'm facing this issue when trying to .put('some-key', b'') (empty object) to S3 storage, other sizes work ok:

Exception: Generic S3 error: Error performing put request data: response error "<?xml version="1.0" encoding="UTF-8"?><Error><Code>MissingContentLength</Code><Message>You must provide the Content-Length HTTP header.</Message></Error>", after 0 retries: HTTP status client error (411 Length Required) for url

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions