- Newest
- Most votes
- Most comments
Hello @manfromtj,
Can you please verify that you are importing the correct version of the AWS SDK for JavaScript before the code that is provided in the question?
For example, if you are using AWS SDK for JavaScript v3, please reference the below:
const { getSignedUrl } = require("@aws-sdk/s3-request-presigner");
const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3");
Or if you are using AWS SDK for JavaScript v2, please reference the below:
var AWS = require("aws-sdk");
var s3 = new AWS.S3();
If you are able to, please provide the rest of the code and what you are trying to do with the code for further understanding in being able to assist with resolving this error.
And it is recommended that you migrate to AWS SDK for JavaScript v3 as v2's upcoming end-of-support has been announced.
I hope this helps, please let us know if this is resolved. And if it is, please help the community by marking this answer as an “Accepted Answer.”
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 22 days ago
