Skip to content

AWS S3 file create HTTP 400 errors #693

Open
@wpeterson

Description

@wpeterson

We recently upgraded a Rails app from 3.20.0 to 3.21.0 and began seeing all of our writes/file creation calls to AWS S3 failing with a 400 error from S3s service calls:

Example exception raised from excon client layer:

Excon::Error::BadRequest Expected(200) <=> Actual(400 Bad Request)
excon.error.response
  :body              => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>IncompleteBody</Code><Message>You did not provide the number of bytes specified by the Content-Length HTTP header</Message><NumberBytesExpected>228</NumberBytesExpected><NumberBytesProvided>0</NumberBytesProvided><RequestId>3SG15S95XAWWA2ZA</RequestId><HostId>g0MdNHKuphyF1e5ee7zt0g/C+4RBv4eKguXKul5TPkkK3esrFfzrEgiu63uDyIgSgl9f0FhJNpo=</HostId></Error>"

I don't see any changes in fog-aws or excon that appears related, but confirmed upgrading to fog-aws 3.21.0 and excon 0.104.0 causes this issue for us. Apologies for not having a simpler test case/reproduction, but thought I would log an issue in case other folks encounter this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions