You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last API call 'complete' to merge the chunks returns with an error. MalformedXML: The XML you provided was not well-formed or did not validate against our published schema
Expected behavior
the call should go through and merge all the chunks as one file.
Actual behavior
Throws 400 bad requests.
MalformedXML: The XML you provided was not well-formed or did not validate against our published schema
the format that FE serialize generates and send to compalte is incorrect.
the FE send that data in a format that sdk does not support hence the example is not working
The example generate this JSON
Also none of the error handling are working
In this error none of the if was trigger to make debugging easy.
if (typeof key !== 'string') {
return res
.status(400)
.json({
error:
's3: the object key must be passed as a query parameter. For example: "?key=abc.jpg"',
})
}
if (!Array.isArray(parts) || !parts.every(isValidPart)) {
return res
.status(400)
.json({
error: 's3: `parts` must be an array of {ETag, PartNumber} objects.',
})
}
The text was updated successfully, but these errors were encountered:
Initial checklist
Link to runnable example
aws-nodejs-example
Steps to reproduce
MalformedXML: The XML you provided was not well-formed or did not validate against our published schema
Expected behavior
the call should go through and merge all the chunks as one file.
Actual behavior
Throws 400 bad requests.
MalformedXML: The XML you provided was not well-formed or did not validate against our published schema
the format that FE serialize generates and send to compalte is incorrect.
the FE send that data in a format that sdk does not support hence the example is not working
The example generate this JSON
should be this aq to aws documentation ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/s3/command/CompleteMultipartUploadCommand/ )
The Parts:
it should be like
Also none of the error handling are working
In this error none of the if was trigger to make debugging easy.
The text was updated successfully, but these errors were encountered: