GetObjectAsync varying ResponseStream Type, MD5Stream causes exception #3283
Unanswered
RiversJohn
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@RiversJohn Good morning. Please share the following:
Thanks, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having an issue where some images we try to get with
AWSSDK.S3" Version="3.5.10.2" AmazonS3Client.GetObjectAsync
Have a return type of MD5Stream and when the stream disposes an exception is thrown:
All the objects were trying to get have been uploaded with the same method:
This makes me wonder why some calls return a stream of type:
{Amazon.Runtime.Internal.Util.CachingWrapperStream}
with underlying typeof:{System.Net.Http.HttpConnection.ContentLengthReadStream}
While other calls return stream of type:
{Amazon.Runtime.Internal.Util.MD5Stream}
with underlying typeof:{Amazon.Runtime.Internal.Util.CachingWrapperStream}
(and the ContentLengthReadStream under that ofc)Currently any calls that return an instance of MD5Stream cause the exception when the stream disposes, our calls do not specify an algorithm.
Calling code:
I'm left wondering if this is a bug or user error, either way i kind of need to know.
I could work around by simply catching the exception and reading the data but doing so blindly without knowing why this occurs doesn't seem terribly smart in the environment this code is running in.
Any advice would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions