Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A potential bug in uploading assets to S3 Storage #927

Open
keshon opened this issue Mar 6, 2025 · 1 comment
Open

A potential bug in uploading assets to S3 Storage #927

keshon opened this issue Mar 6, 2025 · 1 comment
Assignees
Labels

Comments

@keshon
Copy link

keshon commented Mar 6, 2025

Context

Studio name: EzKino.pro
Zou version: My suspicion is that any version above 0.20.8
Zou installation type: self-hosted docker

Describe the bug
While uploading any asset file (image, video etc) via post or publish inside a task, zou throws an error:
botocore.exceptions.ClientError: An error occurred (XAmzContentSHA256Mismatch) when calling the PutObject operation: The provided 'x-amz-content-sha256' header does not match what was computed. blocking the uploading.

Expected behavior
The selected files are expected to be uploaded to S3 Storage, that serves as filesystem

Screenshots
NA

Additional context
I've tested the case on a few recent versions of zou (0.20.22, 0.20.21, 0.20.20) but the problem remained. I decided to roll back to a month old versions to see if it could help, so I tried versions 0.20.6, 0.20.7 (both non available in docker repository) and was lucky to deploy version 0.20.8 that worked without any issue.
The Kitsu version in all test scenarios was 0.20.31.

According to the log, the issue is in botocore library that is being used under the hood. And surprisingly it's a very rare case (I did some googling and didn't find much - a couple of posts with similar issue).

@EvanBldy
Copy link
Member

Hi @keshon, can you retry using Zou last version? I have upgraded flask_fs2.

If the same problem occurs, can you give us the full stacktrace and do a pip list | grep botocore to get the version of botocore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants