awslabs / aws-lex-browser-audio-capture

An example web application using the Lex JavaScript SDK to send and receive audio from the Lex PostContent API. Demonstrates how to capture an audio device, record audio, and convert the audio into a format that Lex will recognize, and play the response. All from a web browser.
MIT No Attribution
165 stars 74 forks source link

Getting error {"message":"The security token included in the request is invalid."} #13

Closed anoopsurendrananp closed 5 years ago

anoopsurendrananp commented 5 years ago

I followed the instructions and tried the html file inside example with my bot credentials. However, I am getting the error below: {"message": "The security token included in the request is invalid."}

michaljm commented 5 years ago

It looks like you are trying to use temporary credentials instead of an IAM user. Have you tried using an IAM user's credentials?