Closed primemb closed 4 years ago
@primemb , hey, were you able to resolve this error? Can you please share what you did to fix it?
@mightbeshreyazyllu hey, you can check here https://stackoverflow.com/questions/62486973/amazon-lex-authorization-with-flutter
Hi! Sorry for the late response. I'm not actively maintaining this anymore. If there's a fix and you'd like to continue using the library, you're welcome to open a PR. If not, I recommend checking out this repo.
I use this package to send post request to Lex service like this :
but i get error from api :
{"message":"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."}
my bot work with postman but not with this package i also noticed the "X-Amz-Content-Sha256" is different on postman and package on postman X-Amz-Content-Sha256 value is: "beaead3198f7da1e70d03ab969765e0821b24fc913697e929e726aeaebf0eba3"
and on this package value is : "ee9ef87bd5a357cff93b1d83d1e8a1b47fb3fa2e94251711c6a30250119e6369"
on both body value is :
{"inputText": "hi"}
when i change the code like this :
i got this message :
{"message":"1 validation error detected: Value at 'inputText' failed to satisfy constraint: Member must not be null"}
so i think it's something wrong in payload hash.