How to fix "To continue to run this bot, please fix the bot source code."

Adnan Dilawar 10 Reputation points
2023-05-18T18:57:54.88+00:00

I am encountering a stage issue during testing the bot in Azure Portal, I developed Knowledge base using language resource in language studio, tested it and works perfectly fine in language studio. After that I published and deployed the KB and created bot. The following instructions on this webpage I deployed the bot and created a chatbot. https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/question-answering/tutorials/bot-service

Now while testing a bot in Azure Portal using "Test in web chat" feature, it returns following errors.

The bot encountered an error or bug.

To continue to run this bot, please fix the bot source code.

Any help to fix this will be appreciated. Please and Thanks

Note: I did the same exercise 3 times same results.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,651 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Adnan Dilawar 10 Reputation points
    2023-05-23T19:06:09.2066667+00:00

    Thanks for your reply "VasaviLankipalle-MSFT" , the issue was VPN, I was using bot while connected through VPN. As soon as VPN was disconnected, the bot started working.

    1 person found this answer helpful.
    0 comments No comments

  2. Brijesh Vinod Shah 0 Reputation points
    2025-03-14T15:28:16.53+00:00

    Hello @Adnan Dilawar , I am using OpenAI LLM and have B1 webAppSKU version. I have created a secret key and entered in the .env.testtool.user replacing existing value in SECRET_OPENAI_API_KEY=

    I am still getting error -

    The bot encountered an error or bug.

    To continue to run this bot, please fix the bot source code.

    Please can you advice where do I check for the source code? 

    0 comments No comments

Your answer

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