qnabot-on-aws icon indicating copy to clipboard operation
qnabot-on-aws copied to clipboard

Enhanced logging and error messages.

Open abilash44 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I made a mistake of using the data id instead of the index id for the kendra index.

Describe the feature you'd like

  1. After enabling chat debug as true some error message should appear in the client side. Nothing appears I only see empty response image
  2. Some form of validation before hit save to inform the entered value is wrong.
  3. Please provide a doc section for looking at logs. There are so many services here I do not know which cloudwatch logs to look at. It will help me find out what is wrong and try fixing it myself.

Additional context I just went around in circles for a few hours creating and deleting a dozen stacks. lol.

abilash44 avatar Nov 28 '23 18:11 abilash44

Hi @abilash44 - unfortunately, the debug does not appear if there is an unhandled exception on the backend. The place you want to look for errors with the chat client is in the fulfillment lambda's log: https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups$3FlogGroupNameFilter$3Dfulfillment.

We're actively working on this already, so we will keep this issue open for updates.

marcburnie avatar Nov 28 '23 21:11 marcburnie

Hi @abilash44 - could you please try testing this in latest QnaBot version 5.5.0? You can deploy QnaBot using template available in https://aws.amazon.com/solutions/implementations/qnabot-on-aws/. If issues persist, please provide errors in fulfillment lambda logs as mentioned above.

Looking forward to hearing from you.

abhirpat avatar Feb 14 '24 22:02 abhirpat