There was an error sending this message to your bot: HTTP status code NotFound

妖精的绣舞 提交于 2019-12-08 03:48:55

问题


I tried to deploy the bot in azure. Initially I created a web app bot in azure and then I download the code from azure. After that I added all the production files like .bot, .env, web.config files in my git repository. After that I added my git repository to the azure. I also included the microsoft app id and app password in app.js file and web.config files.

When I start giving test in web chat it is not running properly instead it shows "There was an error sending this message to your bot: HTTP status code NotFound"

Where I missed, please help me.


回答1:


I would suggest you to make sure you have followed below steps exactly:

  1. First of all make sure you have configured the messaging endpoint as an https URL as it does not supports http.
  2. Check Your Messaging endpoint that you specified and make sure it is same as your using in the bot emulator. See the screen shot.

  1. On your bot azure portal go to Channel menu and make sure there is no issues. see the screen shot below:

  1. Azure portal Configuration under App Service Settings there will be MicrosoftAppId and MicrosoftAppPassword do not change these after downloading it. See the below image

Note: I also suggest you to create a new project on portal and test it on there whether it is working exactly then download it for your enhancement. you could refer here. For remote debug please take a look here. To publish your local project you could refer this

If you still have any concern feel free share in comment. Thank you and happy coding!



来源:https://stackoverflow.com/questions/55980254/there-was-an-error-sending-this-message-to-your-bot-http-status-code-notfound

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!