Bot-Framework Composer: Deployment to azure fails

Stefan Hesse 1 Reputation point
2020-08-20T12:34:40.397+00:00

Hello,

I have created a small toy bot with the bot-framework composer. I verified that it works using the emulator.

After that I followed this guide: https://video2.skills-academy.com/en-us/composer/how-to-publish-bot using the function option.

First issue I hit here was that this one: https://github.com/microsoft/BotFramework-Composer/issues/3452

I built the latest version from source and then the deployment worked.

Then I tried to test the bot in "Bot management/Test in Web Chat" and that didn't work. No messages sent whatsoever.

In the channels tab I can see the following error: "There was an error sending this message to your bot: HTTP status code ServiceUnavailable"

The local emulator gives me: "POST503directline/conversations/<conversationId>/activities"

And chatting with the support we found this error message: "Function host is not running". I also read a similar message somewhere. My assumption is that there is something wrong with the serverless functions.

Thank you in advance
Stefan Hesse

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
833 questions
{count} votes

2 answers

Sort by: Most helpful
  1. YutongTie-MSFT 51,696 Reputation points
    2020-08-20T15:35:17.123+00:00

    Hi Stefan,

    This error may happen if somebody didn't follow the deployment docs exactly. I recommend re-deploying, starting from the top.

    https://video2.skills-academy.com/en-us/azure/bot-service/bot-builder-deploy-az-cli?view=azure-bot-service-4.0&tabs=csharp

    Common hangups are:

    Not using a password that meets the requirements: 16 characters long, contain at least 1 upper or lower case alphabetical character, and contain at least 1 special character.
    Missing the last step and not actually deploying.
    Zipping up their files incorrectly. The file tree should look like this:
    /code.zip
    --app.py
    --requirements.txt
    --...
    and not like this:

    /code.zip
    --/myBot
    ----app.py
    ----requirements.txt
    ----...

    Please let me know if you still have error on this.

    Thanks,
    Yutong

    0 comments No comments

  2. Stefan Hesse 1 Reputation point
    2020-08-21T08:18:15.54+00:00

    Thank you for reply!

    Unfortunately that didn't work. I retried all the steps but without any success. I am not the only one who is affected by that: https://github.com/microsoft/BotFramework-Composer/issues/3722

    I have no idea what to do next


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.