s3-upload-stream
s3-upload-stream copied to clipboard
Error: the XML you provided was not well-formed or did not validate against our published schema
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.
I am having the same issue. Any success so far?
I am getting this issue and it seems to be the result of an empty file.
In 2020 same error here.
@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