Replies: 2 comments 1 reply
-
Hi @tedyu - as mentioned in the post you created in aws-sdk-js-v3 repo, the problem you're facing is related to how you're trying to consume the response stream from the S3 object and you'll need to consume the response stream. Here are how you can resolve in v2: EventHelper.getS3()
.getObject({
Key: key,
Bucket: bucket || EventHelper.getDefaultEventsBucket(),
}, (err, data) => {
if (err) {
return callback(err);
}
const rawData = data.Body.toString('utf-8');
// Process rawData as needed
callback(null, rawData);
}); Best, |
Beta Was this translation helpful? Give feedback.
0 replies
-
@aBurmeseDev |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We face the following exception using sdk v2 to read data from s3:
Here is related code:
consumers.text
is where the exception comes.If the writer to s3 uses sdk v3, I assume the interaction between v3 writer and v2 reader should work.
v3 ver: 3.50.0
v2 ver: 2.1341.0
Has anyone faced similar exception ?
Beta Was this translation helpful? Give feedback.
All reactions