Azure Language Question Answer Service bot gives error

Satish Barnala 11 Reputation points Microsoft Vendor
2023-01-25T04:55:47.3166667+00:00

I have created the bot, by following the tutorial from https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/tutorials/bot-service.

I have created this bot from Language Studio and it works fine there. Then I have deployed the Knowledge DB and then clicked on 'Create a Bot'. Finally the bot is created but always throws this error, "The bot encountered an error or bug. To continue to run this bot, please fix the bot source code.", without any further details. I have followed all the steps mentioned in the tutorial. Please help!

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
747 questions
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
354 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,372 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2023-01-30T14:21:01.3833333+00:00

    Satish Barnala I believe you are seeing this error when you test the bot in webchat and not when you tested the KB from language studio. When you tested the same from language studio we are testing the KB directly. After deployment of KB the bot creation step requires an app service and plan along with the language resource key that you used in language studio. In most probable scenario this language key is incorrectly entered in Azure portal when you hit the create bot button. The key should match the language resource key that is mapped in your language studio and the app service should be up and running after the deployment. If the app service fails to start then you can try a restart of the app service.

    Using the Azure portal you need to locate your app service that is used while creating your bot resource and click on the app service that is used and hit the restart option and check if it works.

    239279-image.png

    You could also setup diagnostic logging of your bot service from the Monitoring -> Diagnostic Settings blade of the bot resource and lookup the logs in the selected destination.

    0 comments No comments