Error while integrating QnAMAker with Azure Bot framework

257 Views Asked by At

I am trying to integrate QnAMaker with Azure Bot Framework V4.I folllowed the step by step procedure mentioned in Read.me of https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/javascript_nodejs/11.qnamaker

When I run the project and try to chat with the bot in Bot Emulator without mentioning the APPId and APPPassword in the bot emulator,I get the error "[onTurnError] unhandled error: TypeError: Cannot read property 'map' of undefined" in the project.And the following error in Bot Emulator 'The bot encountered an error or bug'

When I configure the bot emulator with APPID and sand chat with the bot I get the error ""The bot's Microsoft App ID or Microsoft App Password is incorrect."

I don't understand how to fix this issue and make the bot working.

1

There are 1 best solutions below

1
On

Try putting values for "QnAKnowledgebaseId", "QnAEndpointKey", and "QnAEndpointHostName" in appSettings.json file