Skip to content
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

QnABot web client errors in voice mode - Sorry, I had an error handling this conversation. #83

Closed
rstrahan opened this issue May 30, 2018 · 1 comment
Assignees
Labels

Comments

@rstrahan
Copy link
Contributor

rstrahan commented May 30, 2018

Expected Behavior

No errors!

Actual Behavior

As reported by blog reader "Owen":

Successfully ran cloud formation template and the client works as expected when typing a question.

Using the microphone elicits:
"Sorry, I had an error handling this conversation"

But in the log from the Lambda Fulfilled cloudwatch widget I can see that it received and translated my voice and submitted the correct response as fulfilled. Just doesn't show in the client.

Problem was also seen ans reported by another internal user installing QnABot for the first time.

Steps to Reproduce the Problem

  1. Install QnABot in an account that have not previously had a Lex bot installed.
  2. Use voice in the web UI to interact with the bot. Observe error:

image

Browser console shows:

converser error: Error: Invalid Bot Configuration: Lex is unable to assume the Service-Linked Role AWSServiceRoleForLexBots necessary to synthesize a speech response for this request. Please confirm that this role exists within your account, or create it with the IAM Console or by using the CreateServiceLinkedRole operation in the IAM SDK.

Deeper investigation shows permissions error reported by CFN Lambda function when attemptiing to create the Lex ServiceLinked Role:

2018-05-30T11:51:26.892Z c83a1564-63ff-11e8-8506-052c80a4cc0d { AccessDenied: User: arn:aws:sts::895572318605:assumed-role/QnABotTestNewAccount-CFNLambdaRole-1PM1JIKEXHL3R/QnABotTestNewAccount-CFNLambda-13C7ZQOSG5RA4 is not authorized to perform: iam:CreateServiceLinkedRole on resource: arn:aws:iam::895572318605:role/aws-service-role/lex.amazonaws.com/AWSServiceRoleForLexBots
at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/query.js:47:29)

@JohnCalhoun
Copy link
Contributor

this is fixed in 2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants