putObject with ByteStream fails for some files #1517
Labels
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to 'closing-soon' in 5 days.
Describe the bug
I am using
putObject
to upload small files (< 5Mb) to S3 bucket:some files are uploaded without any issues for others I get 503 error:
Observation 1:
If I am reading file in memory before sending and construct
ByteBuffer
fromByteArray
it works for all files without any issues:Observation 2:
If I am reading file in memory but create
ByteBuffer
viainputStream
I get same errors again:Observation 3:
I created a custom ProgressListener wrapping stream content to support upload progress indication.
For successfully uploaded files progress listener was reporting the amount of bytes sent equal to the file size.
For files that could not be uploaded
putObject
operation tried to send more than the file size.Regression Issue
Expected behavior
putObject
operation with stream body should work consistently for all filesCurrent behavior
putObject
operation with stream body fails to upload some files.Steps to Reproduce
Possible Solution
No response
Context
No response
AWS SDK for Kotlin version
1.3.112
Platform (JVM/JS/Native)
Jvm
Operating system and version
Android
The text was updated successfully, but these errors were encountered: