I am developing a chatbot using Microsoft Botframework. Bot works fine when I run it locally with emulator. How ever when I deploy it on Azure as a bot service and try to access it using webchat channel it start giving 502 error.I am tried following steps to deploy it.
- Created a resource group in Azure
- Created a Service Plan in azure
- open url https://dev.botframework.com/ and under My bots menu item clicked "Create a bot" button
- "Create a bot" page takes me to Azure Bot Service page
- On Azure Bot service page I select "Web App Bot"
- On clicking "Create" Azure ask me few details such as Bot Name, Resource group, App Name etc and creates a Bot
- In this new Bot when I go to "Test in Web Chat" and type something it gives me a response back.
- Now I took app id and secret key from Settings and add it to web config file.
- Now I publish my bot from Visual Studio selecting new bot service as app service
- Publishing is successful
- Now when I try to access my bot in Test in Web Chat window in Azure,messages start getting failed
- I have taken the web chat link from channel section and paste it on html page and updated secret key for web chat
- Now when I send a message I start getting (502) bad gateway error in console.
I have deployed bots in the past as well but at that I was using dev.botframework.com for configuring bots.
This is first time I am trying to deploy it on Azure Bot service and don't know what am I missing here.
Can someone help me with this?