Error while integrating QnAMAker with Azure Bot framework - botframework

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.

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

Related

Microsoft Teams Bot - Writing to a bot returns error message

I've created a bot based on the following sample:
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/typescript_nodejs/57.teams-conversation-bot
Everything looks well so far and worked in my first bot. But with my second bot I've created when I start a conversation with the bot, I get a "Failed to send" error in Microsoft Teams on my desktop.
When I use teams in the web I can see in the dev tools the following error message for the request:
https://emea.ng.msg.teams.microsoft.com/v1/threads
Error:
One or more of the user ids provided are not valid.
I'm lost on what could be wrong. Any hint would be highly appreciated.
I was seeing the same error after creating a second bot for testing and realized I had forgotten to setup the Teams channel in Azure configuration.
So double-check that the Microsoft Teams channel is running:

Azure core bot Luis integration gives error on running via emulator: Operation returned an invalid status code 'Resource Not Found'

Steps I followed:
1.created a Bot service using core bot template https://github.com/microsoft/botbuilder-python/releases/download/Templates/core.zip through cookiecutter.
2.created LUIS app on LUIS.ai and added the configurations for the same in config.py file.
Now, when i try running the bot locally from emulator, i am getting error:Operation returned an invalid status code 'Resource Not Found'
I am entirely new to Bot framework.Sorry if i missed any detail.

Microsoft Bot "Sorry, my bot code is having an issue"

I have created Microsoft Bot and hosted on azure with proper microsoft appid and password.
In Bot Channel, I have registred the hosted app service(bot).
My bot is working with emulator. but when i tried to work with other channel such as webchat, direct line, it is not working, it is showing error as "Sorry, my bot code is having an issue"
Please assist me to resolve the issue

Card Carousel Bot is not working

I executed the card-carousel sample in the node js BotBuilder-Sample https://github.com/Microsoft/BotBuilder-Samples/tree/master/Node/cards-CarouselCards but in the bot emulator the bot is not replying. In console window it is throwing a error.
ERROR: ChatConnector: receive - invalid token. Requested by unexpected app ID.
I've also put the app id and passed it to the bot emulator:
// Create chat bot and listen to messages
var connector = new builder.ChatConnector({
appId: "ecdd3610-37d3-462b-b133-04b206108e44",
appPassword: "umefqAXLO824?=coWBK20+["
});
Do you have any clue on how to solve the issue?
the bot emulator the bot is not replying. In console window it is throwing a error.
ERROR: ChatConnector: receive - invalid token. Requested by unexpected app ID.
Only I can reproduce your issue is when I set the different appId and appPassword pairs in nodejs script and bot emulator.
Please double check the appId and appPassword pairs are exactly the same your set in nodejs script and bot emulator.
Additionally, if you only need a test, you can empty the pairs both in script and emulator.
I migrated the bot form https://dev.botframework.com/bots to azure bot service it is working fine.Thanks for everbody contribution to the problem.

The remote server returned an error: (409) Conflict

While trying to register a bot in Microsoft Bot Framework, I am getting the following error message :
The remote server returned an error: (409) Conflict.
The messaging endpoint is of the form :
https://your_bots_hostname/api/messages
The bot is hosted in azure.
I got the same Error during the registration of a bot in Microsoft Bot Framework. Mostly the above error occurs whenever we are trying to create a new bot, in that registration we are specified the Existing Microsoft Application Id in the Microsoft Application Id field of bot registration form.
So, try to create new Microsoft Application with new name (like that the name would never use before) for your new bot then your issue resolve.
-Hope it will be help to you.
-Kishore

Resources