-
Notifications
You must be signed in to change notification settings - Fork 49
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
Stream must be replayable to calculate a body hash #1473
Comments
If you have direct access to the file through the We can only support replayable bodies for standard SigV4 signing because we need to include the checksum of the body in the request. Calculating the checksum of a non-replayable body would fully consume it, leaving us unable to send it in the request itself. |
I've proposed a small fix to infer the replayability of a given |
We've merged the fix I noted above and it should be available edit: Fix will be available in Monday's release |
QUESTIONS
thanks! |
|
hmm.. i installed aws-sdk-kotlin 1.3.82. using your quote above changed code to:
got new error message (without replayable words) in catch: am i doing something wrong? |
Are you using a 3rd party object storage like MinIO? That's the only time we've seen errors similar to this. Can you send a full request wire log by configuring |
I was able to replicate your error, I don't think |
thanks for the help.
next is FYI, because behavior is strange)
ohh) it was magic trip. i spent several hours to enable logging. then i installed so my results of wire log. also interesting)
but we can't see SDK logs, because they are disabled)) |
Describe the bug
Hello,
trying to upload file to S3 in Jetpack Compose.
Uri
for file i got from PhotoPicker.Regression Issue
Expected behavior
file uploaded successfully
Current behavior
error:
java.lang.IllegalArgumentException: Stream must be replayable to calculate a body hash
Steps to Reproduce
upload
Possible Solution
No response
Context
No response
AWS SDK for Kotlin version
2.0.21
Platform (JVM/JS/Native)
Native
Operating system and version
Ubuntu 20.04.5 LTS
The text was updated successfully, but these errors were encountered: