Closed vincentgu818 closed 1 year ago
Try to call same request from Postman and if postman call works then cross check your signature with postman signature using same parameters
Thanks for the reply. The Postman call did not work.
is postman also receiving wrong signature or anything else
On Sat, 2 Oct, 2021, 4:11 AM vincentgu818, @.***> wrote:
Thanks for the reply. The Postman call did not work.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/amzn/selling-partner-api-models/issues/1900, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANYJAKA3CN432VEQWBLUA5LUEY2HXANCNFSM5FAB4WBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Postman is receiving a response identical to the one at the beginning of my original post.
@vincentgu818 i have the same issue... did you find a solution?
I have the same issue and i do not know where the problem is.
The differens is, that i have a functional Postman Request, but i am not able to generate the same Signature in Powershell as in Postman...
I try to receive the temporary Credentials via sts before i can sign and make a get request with my temp credentials
Did anyone find a solution?
I was also facing similar issue. Turns out I had to add API stage as prefix to the path when creating the HTTPRequest. I identified this by console logging stringToSign and canonical request in @aws-sdk/signature-v4.
The canonical string path differed for me.
It was expecting staging/projects/
/projects/
@vincentgu818 I was facing the same problem. Check this Stack Overflow post I made a few days ago. Stack Overflow post In the answer I'm using your code and made it work, there were some little problems, although the signature itself was the same.
This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.
closed for inactivity
I am getting the following error:
I have verified that my Canonical String and String-To-Sign are identical to these (include the case). So my issue must be in the Secret Access Key or Signing Method.
I went ahead and regenerated the access key and I am using the Python example to get the Signature Key: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-get-auth-header
I've gone over the other issues reported and they haven't fixed my problem : #966 (if RoleARN used, required to use STS Session Token as x-amz-security-token) #656 (capitalization of query parameter) #528 (regenerated my keys) #468 (no resolution) #465 (no resolution) #116 (canonical_uri change, execute-api for service) #111 (content-type header and x-amz-content-sha256 header)
Can anybody help me? Thank you.
Here is my code minus the credentials.