getting error while using bot

Taehyung 20 Reputation points
2023-12-13T08:52:21.34+00:00

I'm getting error - bot encountered an error To continue to run this bot, please fix the bot source code." message.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Azar 31,610 Reputation points MVP Volunteer Moderator
    2023-12-13T09:13:33.4433333+00:00

    Hi

    I suggest you to recheck if the key you have provided is correct, just copy it and paste, its try restarting your app service, also click on channels and Check the health status of Azure Bot Service. There might be service-related issues causing the error.

    I mainly would suggest you to check your endpoints and restarting.

    If this helps kindly accept the answer.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. navba-MSFT 27,605 Reputation points Microsoft Employee Moderator
    2023-12-13T09:38:52.2066667+00:00

    @Taehyung Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Firstly you need to check if your BOT works fine locally from BOT emulator.

    The error message "The bot encountered an error or bug" usually indicates that there is a problem with the bot's code. The message "To continue to run this bot, please fix the bot source code" suggests that there is an issue with the code that needs to be resolved. You may want to check the code for any errors or bugs.

    To troubleshoot exceptions in the Azure Bot Service follow **this article.
    **
    You can also debug the issue by enabling diagnostic logging on your bot service from azure portal which can identify any configuration issues with the bot that is deployed. To enable the diagnostics logs for your Bot service as explained here.

    Did you get a chance to check the app service that is created along with your bot resource is running?
    Also, check if you app plan is using a standard tier instead of free. You can enable the diagnostic logging for your Azure App service as explained in this article and check for any errors.

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.