Failure to upload using S3 storage block

I have an S3 bucket which I am trying to upload a flow to

prefect deployment build flows/test_flow/test_flow.py:test -n ping --storage-block=s3/my-bucket

I get the resulting error:

botocore.exceptions.ClientError: An error occurred (MalformedXML) when calling the PutObject operation: The XML you provided was not well-formed or did not validate against our published schema

The S3 block appears to block looks ok - as changing the AWS tokens results in an auth error. I wonder whether I don’t have the right bucket policies but not sure where to start.

Boto3 might have changed it’s version?

it looks like a bucket replication issue, can you check if replication is set up on your bucket and check this answer?

letting pip sort out the boto3 version seemed to solve it

1 Like