When I test my bot locally via the Bot Emulator it runs fine with no issues, after deploying into Azure I receive this error when trying to Test in Web Chat:
There was an error sending this message to your bot: HTTP status code ServiceUnavailable
This is what I've already done:
- I have ensured my Messaging API is correctly configured.
- I have ensured my AppID and Password match and are properly configured.
- I have redeployed (multiple times) and used multiple browsers to test in web chat.
When I message in web-chat I get no response or welcome message:
To connect and test Azure Bot, few modifications should be done.
Here, I have added
init_func()
.Create Azure Bot and Azure App Service.
Copy
Microsoft App ID
value.Click on Manage Password in the configuration, create new secret and copy its value to use it as App Password in the code.
Open Config.py in your local Echo Bot project and paste the App_ID and App_Password which were copied as mentioned above.
Web App=>Configuration=>General Settings=>Startup Command
, update the commandpython3 -m aiohttp.web -H 0.0.0.0 -P 8000 app:init_func
.