BOT Channel in Azure not working but same hosted end point is working in BOT emulator

Shouvik Mitra 1 Reputation point
2020-07-23T12:28:05.497+00:00

Hi,
I have hosted a Python 3.6 chat bot application on Web App service in Azure. Then registered a channel BOT with the end points. Tried testing through Web chat but BOT is not sending back any response.

The Web Channels log show There was an error sending this message to your bot: HTTP status code InternalServerError

When I paste the end point URL on browser it gives 405 Method not allowed

Please advise.

The same URL when tested in BOT emulator through ngrok tunnel , it is working fine.

Appreciate any suggestion.
thanks

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

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,176 Reputation points Moderator
    2020-07-25T00:09:29.9+00:00

    Hi, pardon me, web.config file is not related to your python application. Once you deploy your bot to azure, you'll obtain a Microsoft App ID and Microsoft App Password that you can use for authentication. The Microsoft App ID and Microsoft App Password are located in Azure Portal > ResourceGroup > Web App Bot > App Service Settings > Configurations. First, verify that your the App ID and Password are valid and configured your bot with the correct App ID and Password. Ensure that your bot is running, included the proper path (e.g., /api/messages) and specified https url. Here are additional resources. Please share code repo if issue persists so we can investigate further. Thanks.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.