将此消息发送到您的机器人时出错:HTTP状态代码未找到 [英] There was an error sending this message to your bot: HTTP status code NotFound

查看:155
本文介绍了将此消息发送到您的机器人时出错:HTTP状态代码未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以天蓝色部署该机器人.最初,我在azure中创建了一个网络应用程序bot,然后从azure下载了代码.之后,我将所有生产文件(如.bot,.env,web.config文件)添加到了git存储库中.之后,我将我的git存储库添加到了天蓝色.我还在app.js文件和web.config文件中包含了Microsoft应用程序ID和应用程序密码.

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.

当我开始通过网络聊天进行测试时,它无法正常运行,而是显示"向您的机器人发送此消息时出错:HTTP状态代码未找到"

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. 首先请确保已将消息传递终结点配置为 https URL,因为它不支持http.
  2. 检查您指定的消息传递端点,并确保它是 与您在漫游器仿真器中使用的相同.查看屏幕截图.
  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. 在您的bot azure门户上,转到Channel菜单,并确保有 没有问题.请参见下面的屏幕截图:
  1. On your bot azure portal go to Channel menu and make sure there is no issues. see the screen shot below:

    App Service Settings下的
  1. Azure门户ConfigurationMicrosoftAppIdMicrosoftAppPassword请勿更改这些 下载后.见下图
  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!

这篇关于将此消息发送到您的机器人时出错:HTTP状态代码未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆