getSignedUrl not working as expected #4328
Unanswered
premraghvani
asked this question in
Q&A
Replies: 1 comment
-
Hey @premraghvani thanks for opening this discussion, please refer to the API docs. You must ensure that you have static or previously resolved credentials if you call this method synchronously (with no callback), otherwise it may not properly sign the request. If you cannot guarantee this (you are using an asynchronous credential provider, i.e., EC2 IAM roles), you should always call this method with an asynchronous callback. Also see: getSignedUrlPromise. Please reach out if you have any other questions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day all,
I have been getting the "SignatureDoesNotMatch" error recently when trying to get a signed URL for putObject.
My code for putObject is:
I have tried for getObject, replacing the key name and 'putObject' and it works like a charm.
I defined the AWS using:
Here is part of the error:
And for context, this is all running off of a Lambda function in eu-west-2, the bucket is also there. The IAM role allows this Lambda function to both PutObject and GetObject from this bucket (specified in
config.s3.tables
)Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions