There was an error sending this message to your bot - Test in Web Chat

前端 未结 3 1267
粉色の甜心
粉色の甜心 2021-01-24 17:35

I have a C# bot developed in Visual Studio which runs successfully on a bot emulator in desktop. This bot was published to Azure and again ran successfully in the bot emulator.

相关标签:
3条回答
  • 2021-01-24 17:55

    Well I'd made a mistake in configuration. I had configured the messaging endpoint as an http URL. However bot configuration only seems to work with an https URL. Changing http to https fixed my problem. Thanks everyone for the suggestions!

    0 讨论(0)
  • 2021-01-24 18:00

    This had me pulling my hair out - then I noticed some websocket errors in my browser's developer console - and after a browser restart it started working again!

    0 讨论(0)
  • 2021-01-24 18:06

    the same bot wouldn't work in web chat or in the "Test in Web Chat" window in Azure portal. It always replies with - couldn't send retry.

    To troubleshot the issue, you can try:

    1. In Settings blade, please check the Messaging endpoint that you specified and make sure it is same as your using in the bot emulator.

    2. In the Application Settings blade, please check if you specify the correct MicrosoftAppID and MicrosoftAppPassword for your bot.

    3. In Channels blade, please check the error message by clicking the "Issues" link for the affected channel.

    4. The bot application is hosted as Azure web app, try to remote debug your code and check if the code is executed as expected.

    Besides, if possible, you can try to create a new bot on Azure portal, and publish your bot application to corresponding web application that you specified as messaging endpoint, and check if web chat works fine with that new bot.

    0 讨论(0)
提交回复
热议问题