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

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

Related

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

How to access the bot deployed from Microsoft Samples (bot-builder-samples)

I have created bots using the azure portal, which auto creates a bot app resource in azure. When I click on this resource via the portal, I can access the bot by opening the chat window and can try out the bot.
I also created bot using visual studio, published it to the azure web and then configured a 'bot channels registration' bot to use this published bot.
All good so far.
Now I am trying to go through the ready made Microsoft examples from: https://learn.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-samples?view=azure-bot-service-3.0
I opened the "Create new conversation" link from the above website (https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-CreateNewConversation). I scroll down and click on "Deploy to Azure" button and the deploy is successful. How do I access the bot now?
I have tried creating the 'bot channels registration' bot and setting the messaging endpoint to the https://DeployedExampleAzureWebsiteLink/api/messages. Now, when I go into this azure resource, and into the test chat window, my message does not get delivered to the bot, and same issue upon retry aswell.
How do I access this bot please?
When you click deploy to Azure you get an option to fill out the Microsoft App Id and Password.
You are supposed to enter the same App Id and Password you gave while registering the Bot in the Bot channel registration

Cannot re-submit Skype channel for review

When I try to re-submit my Skype channel Web App bot for review I got an error on the Microsoft Azure portal. "CorrelationID: |OgnX4.RKq/h.ee42bd69_"
The value after the colon always change, the above is only an example.

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 !!

Microsoft botframework bot stopped working in Microsoft team

I tried to connect a bot built using Microsoft botframework to Microsoft team with no luck.
If I use other channels like webchat it works like a charm ! , I've tried to create new simple bot using Azure Bot services. In a matter of fact, I left the generated echo bot code as is , when I tried to connect to Teams channel I got an error message "Oops something went wrong" as you can see in this screen capture
Bot Service Azure Error
tried to use the Microsoft ID and add the bot to MS teams app package however the same behavior applies (bot is never responding)
if the bot is running locally using ngrok there is no message been logged to ngrok endpoint at all as if msteams client is not sending the conversation at all.
I suspect there is a problem with bot registration.
P.S. Skype channel is not working as well.
Thanks,
Amr

Resources