https://prefect.io logo
Title
s

Sarhan

02/28/2023, 1:56 AM
Hello, facing a weird error when trying to deploy my flow with S3 as my storage:
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
It worked fine yesterday. I’ve tried deploying using Python as well as CLI. Both give the above error. No permission changes on S3 and no changes on my Python packages. Any insights?
r

Rob Freedy

02/28/2023, 2:10 AM
Hey @Sarhan! Are you able to share how you are configuring the S3 storage block as well as how you are running the deployment?
s

Sarhan

02/28/2023, 2:35 AM
Sure @Rob Freedy. I set up an S3 block and I’m calling that into my deployment.py script
But I’ve also tried using CLI:
prefect deployment build <path-to-flow> -sb s3/<s3-block-name>
a

Austin Weisgrau

02/28/2023, 2:48 AM
This is not a super helpful answer but I've gotten odd errors from S3 before, not this same one but similar circumstance. Deleting the resource in S3 and recreating the deployment has resolved the error for me in those circumstances.
r

Rob Freedy

02/28/2023, 2:54 AM
What prefect version are you running? Is there any S3 config you can share? It might be worth updating Prefect and s3fs to the latest versions and recreating the block (as Austin mentioned)
s

Sarhan

02/28/2023, 3:03 AM
I’m running the latest version of Prefect (2.8.3) and s3fs (2023.1.0) Also just tried Austin’s suggestion. Still getting the same error, unfortunately.
r

Rob Freedy

02/28/2023, 3:11 AM
How are you passing in the bucket path in the block? Is there a sub folder that you are referencing in the bucket path? Also, are there any specific settings in the bucket?