Azure bot Direct Line App Service Extension Error: Upgrade to WebSocket is required.

Pravin Ambekar 6 Reputation points
2022-01-06T05:09:16.013+00:00

162761-socket.png

Hello Team,

I have Azure web app bot using bot framework and qnamaker , To isolate bot service from unauthenticated user access we have enabled Direct Line App Service Extension.
For this:

1) We have enabled App service extension from Direct Line Channel in portal
2) Configured App Service Extension Keys into App Service.
3) Made required change in Web App Bot source to add app.UseWebSocket() & app.UseNamedPipes() and deployed changes. (apart from these two, i have not made any other change)

the Bot is created and configured through Virtual Assistant template and the OS is of Linux kind.

But i am getting error upon accessing https://xxx.azurewebsites.net/api/messages that Upgrade to WebSocket is required.
and getting 404 error while access https://xxx.azurewebsites.net/.bot/

I already have

  1. enabled Web Socket option from General Settings of App service configuration,
  2. Configured DirectLineExtensionKey and Version in Application Settings section.

I already have followed troubleshooting steps mentioned here: https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-directline-extension-net-bot?view=azure-bot-service-4.0#troubleshooting but still not success

Surprisingly bot in the web chat still working and responding to questions

Could you please advise what could be possible reason for the issue, as the check for correct configuration is to see json result upon navigating to : https://<your_app_service>.azurewebsites.net/.bot and getting result something like : {"v":"123","k":true,"ib":true,"ob":true,"initialized":true}
But here i am getting 404.

Thank you.

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

2 answers

Sort by: Most helpful
  1. Destin Joy 1,871 Reputation points
    2022-01-26T13:22:00.767+00:00

    Check Issue is due to WebSockets being disabled in the bot's web.config

    0 comments No comments

  2. Alasdair Miller 1 Reputation point
    2022-03-08T15:05:26.243+00:00

    Am having the same issue - did you resolve ?


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.