Malformed XML Error when calling put_bucket_replication boto3 API call from Lambda python #3357
|
When I call put_bucket_replication boto3 API call from my Lambda written in python code I see the below error: botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the PutBucketReplication operation: The XML you provided was not well-formed or did not validate against our published schema. Here is my function: response_bucket_replication_rule= s3client.put_bucket_replication( |
Replies: 1 comment
|
Hi @yaminir thanks for reaching out. This is a server-side error from s3 that has been reported a few times, for example here and here. You could try referring to those or similar issues for suggestions. If you could provide your debug logs by adding |
Hi @yaminir thanks for reaching out. This is a server-side error from s3 that has been reported a few times, for example here and here. You could try referring to those or similar issues for suggestions. If you could provide your debug logs by adding
boto3.set_stream_logger('')to your script (with sensitive info redacted) that could help give more insight into the behavior here.