aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.03k stars 549 forks source link

Error: credential should be scoped to the correct service lex #2385

Closed cicchello82 closed 3 years ago

cicchello82 commented 3 years ago

Hi, I'm trying the LexSample. I followed all configurations steps but if I launch the App and try to send text command to bot, I have the error credential should be scoped to the correct service lex Anyne can help me? Thanks in advance, Giacomo

raphkim commented 3 years ago

Hi @cicchello82 , As per our last discussion in Discord, I was unable to reproduce this issue in the LexSample app. Would you be able to update this ticket with more information to help us find out what may be causing this issue for you? The rest of the stacktrace and detailed configuration steps that you took (without any sensitive information) would be helpful.

cicchello82 commented 3 years ago

Hi @raphkim, I tried two steps: first I followed the instruction in readme file for installing LexSample and it gave me the error. The I imported the sample in a working Android app with amplify Auth and Analytics but I had same error when I try to call the Bot. I set cognito identity to have Lex permissions (as explained in Polly Example) but without success. I don't now if I miss some configuration setting. Could you please me wich part of code show you to better understand? Thanks very much, Giacomo

richardmcclellan commented 3 years ago

We believe this issue was fixed in the 2.22.6 release. The latest version is 2.22.7 - please give that a try! If you are still having issues, feel free to comment or open a new issue.

cicchello82 commented 3 years ago

Hi, after upgrading libraries to 2.22.7 something changed but I have a new error "the request signature we calculated does not match the signature you provided. Check your aws secret.....".

HaemanthSP commented 3 years ago

Hi @cicchello82 , @richardmcclellan

Have you found the solution? I am facing the same issue.

com.amazonaws.AmazonServiceException: 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.

Best regards, Haemanth