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

XAmzContentSHA256Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed after #218 #228

Open
onhate opened this issue Aug 3, 2024 · 4 comments

Comments

@onhate
Copy link
Contributor

onhate commented Aug 3, 2024

I'm getting XAmzContentSHA256Mismatch error on next bucket deployment lambda stage.

I've traced to the 4.0.0-beta.31 release, it works on 4.0.0-beta.30, so definitely #218 is the root cause

https://github.com/jetbridge/cdk-nextjs/releases/tag/v4.0.0-beta.31

@bestickley
Copy link
Contributor

@jadenv, any ideas about this? Have you ever experienced this?

@jadenv
Copy link
Contributor

jadenv commented Aug 5, 2024

Interesting, we have not come across this error in any of our repo's deployments.

Before the switch, we experienced random asset upload failures a couple of times a week, which were resolved with a manual re-deploy. However, since making the switch to lib-storage, we haven't encountered a single assets deployment issue yet.

@m-kemarskyi
Copy link

@onhate I have the same problem with the version 4.1.1. By any chance, do you have any updates on it?
Maybe the issue was different and you managed to solve it? Or you simply downgraded to the version 4.0.0-beta.30?

@m-kemarskyi
Copy link

m-kemarskyi commented Dec 8, 2024

@jadenv Looks like the use of lib-storage Upload instead of PutObject is definitely the cause - I experience exactly the same behaviour as @onhate, and this @aws-sdk/lib-storage open issue seems to be the root cause.

Probably worth considering reverting this change until the issue is resolved on the AWS SDK side?

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

No branches or pull requests

4 participants