Card Carousel Bot is not working - botframework

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.

Related

In virtual assitent ,IBotFrameworkHttpAdapter.Adapter.Processasync menthod render the error :"Error invoking the skill id: error code 401."

We are trying to create virtual assistant bot microsoft teams. When we are trying to send request to skill bot from root bot using SkillClient.PostActivityAsync method, while debugging request hits botcontroller of skill bot. But it return 401 unauthorized error. If we try same in local using bot framework emulator (without using app id and password) it is working as expected. And how we can resolve this unauthorized error?
"When we use root bot with the different simple skill bot, it is working. but when we use app having client app (for tabs and Messaging extensions built using react) and additional authorization required for it. at that time it is throwing the above error"
Thanks!

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:

Error while integrating QnAMAker with Azure Bot framework

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

microsoft bot framework - skype for business - error

I am using Microsoft Botframework to publish a bot (Channel Registration). When I try enabling the channels , I see the bot to be working in Slack , Skype, MS Teams & Web chat . However (despite following the steps to enable bot in SFB) I could not get the bot working in Skype for Business. I keep getting the error.
"Sorry, we ran into a problem at our end."
Neither do I see any log to debug.
Waited more than 24 hrs to ensure it is not the sync issue. But issue still remains. Any help appreciated !!
I am not clear with the error as to from which end it is being thrown.
I need you to follow the below steps:
Publish Bot in azure as an app service, through VS if you are coding through c#.
Create a "Bot channel registration" in azure and connect the above app service and Bot channel registration(simple use the URL of the app service append it with /api/messages and insert the same as messaging endpoint in Bot channel registration).
use the app id and app secret in bot solution and republish the app service.
Inside Bot channel registration click on channel and enable it for Skype for business(you will find your BOT in SFB using the credentials you have used to create the bot channel registration).
Finally got it working. What i noticed is the following
I faced the issue when I used the SIP URI as somebot#mydomain.com to register the bot in my tenant.
And i got it working when I used the SIP URI as somebot#mydomain.onmicrosoft.com.
Unsure on the reasoning though :)
And btw thanks #Tanmoy for your answer aswell !!

Adding Channel Telegram to BotFramework not working

I'm trying to add a channel to my Bot at dev.botframework.com but when I try to submit the access token of telegram, I'm getting a Runtime Error.
I tryed a new Access token and an old one from a previous bot, but it don't work.
Is that an error in my bot or on the Website / at telegram? I can use the bot with the webchat without any Problems.
This was already fixed per this thread.

Resources