-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The request signature we calculated does not match the signature you provided. #35
Comments
Whoa, I found it I got that error response from AWS
and I debugged
So basically AWS expects To fix this I changed in @jonsaw Do you want to review this? I can create a PR or you just fix it? |
Thanks for the PR @BerndWessels . |
Hi @BerndWessels I'm getting the same error when using POST with DynamoDB. However, I do not see the detailed error message. How did you get the detailed message which explains the error in signatures? All I see in response is "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.". Below is my code.
|
@KhuramKhalid hi, maybe I got lucky that API Gateway returns the more detailed error response - I just got it from the exception thrown. If you get completely stuck I suggest creating a Amplify Web Project and inspect the network traffic for the same AWS calls - this should help figuring out what the difference between your flutter request and a working request from a webclient is (in the end they must be the same). |
Turns out the issue was with the http client. Instead I used the raw HttpClient from the same package (http.dart) and it worked. Below is what I changed. Instead of this:
I did this:
|
When I am using GET the request succeeds.
But when I use POST I get this error response
The request signature we calculated does not match the signature you provided. ...
Is there a problem with POST and signing for API Gateway ?
The text was updated successfully, but these errors were encountered: