You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{S3}from"@aws-sdk/client-s3";constclient=newS3();constparams={Bucket: "my-bucket",Key: "my-key",};// In JS SDK v2, the response body was a Buffer in memory.// In JS SDK v3, the response body is a Readable Stream which needs to be explicitly consumed.// Details: https://github.com/aws/aws-sdk-js-v3/blob/main/UPGRADING.md#amazon-s3constresponse=awaitclient.getObject(params);constdata=response.Body;
Self-service
Describe the bug
When S3.GetObject is called and Body is processed, the equivalent v3 mixins are not added
Steps to reproduce
Observed behavior
The
data
in the transformed code is a Readable Stream and not a buffer.Expected behavior
The Body needs to be transformed from Readable Stream to Buffer.
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: