s3-upload-stream icon indicating copy to clipboard operation
s3-upload-stream copied to clipboard

Error: the XML you provided was not well-formed or did not validate against our published schema

Open olalonde opened this issue 9 years ago • 4 comments

I am occasionally seeing this message in my production logs:

error: Failed to complete the multipart upload on S3: {"message":"The XML you provided was not well-formed or did not validate against our published schema","code":"MalformedXML","region":null,"time":"2016-07-28T14:49:51.009Z","requestId":"8BC08EF7AA847920","extendedRequestId":"BKycEDqnBhWYNhksqCfIcrPJzHB3dpFR/vww3CqXRMTmkFKXT2si9ByKy7TlcsBkXDj3zLcpLCE=","statusCode":400,"retryable":false,"retryDelay":67.72877744943004}

Better formatted:

{ message: 'The XML you provided was not well-formed or did not validate against our published schema',
  code: 'MalformedXML',
  region: null,
  time: '2016-07-28T14:49:51.009Z',
  requestId: '8BC08EF7AA847920',
  extendedRequestId: 'BKycEDqnBhWYNhksqCfIcrPJzHB3dpFR/vww3CqXRMTmkFKXT2si9ByKy7TlcsBkXDj3zLcpLCE=',
  statusCode: 400,
  retryable: false,
  retryDelay: 67.72877744943004 }

Related? https://github.com/nathanpeck/s3-upload-stream/issues/18

It's really hard to pinpoint what the cause of this issue might be as I can't reproduce it reliably. I was wondering if anyone had experienced the same problem with s3-upload-stream.

olalonde avatar Jul 28 '16 19:07 olalonde

I am having the same issue. Any success so far?

reeversedev avatar Aug 17 '17 04:08 reeversedev

I am getting this issue and it seems to be the result of an empty file.

robehickman avatar Dec 09 '17 18:12 robehickman

In 2020 same error here.

celiovasconcelos avatar Feb 01 '20 21:02 celiovasconcelos

@celiovasconcelos I no longer maintain this module. It's functionality has been added to the official AWS SDK some years ago, so all bug fixes and future features are part of the official AWS SDK. You should use this S3.upload() method instead: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#upload-property

Try that method and if you still see the same error open an issue on the official AWS SDK

nathanpeck avatar Feb 02 '20 16:02 nathanpeck