Check Issue is due to WebSockets being disabled in the bot's web.config
Azure bot Direct Line App Service Extension Error: Upgrade to WebSocket is required.
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
- enabled Web Socket option from General Settings of App service configuration,
- 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
2 answers
Sort by: Most helpful
-
-
Alasdair Miller 1 Reputation point
2022-03-08T15:05:26.243+00:00 Am having the same issue - did you resolve ?