向您的机器人发送此消息时出错:HTTP 状态代码 NotFound
There was an error sending this message to your bot: HTTP status code NotFound
我尝试在 Azure 中部署机器人。最初我在 azure 中创建了一个网络应用程序机器人,然后我从 azure 下载了代码。之后,我在我的 git 存储库中添加了所有生产文件,如 .bot、.env、web.config 文件。之后,我将我的 git 存储库添加到 Azure。我还在 app.js 文件和 web.config 文件中包含了 Microsoft 应用程序 ID 和应用程序密码。
当我开始在网络聊天中进行测试时,它 运行 不正确,而是显示“向您的机器人发送此消息时出错:HTTP 状态代码 NotFound
哪里漏了,求大神指教
我建议您确保您完全按照以下步骤操作:
- 首先确保您已将消息传递端点配置为
https
URL 因为它不支持 http
.
- 检查您指定的消息端点并确保它是
与您在机器人模拟器中的使用相同。查看屏幕截图。
- 在你的 bot azure 门户上转到
Channel
菜单并确保有
没有问题。请参阅下面的屏幕截图:
- Azure 门户
Configuration
在 App Service Settings
下会有
是 MicrosoftAppId
和 MicrosoftAppPassword
不要改变这些
下载后。见下图
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
如果您还有任何疑虑,请随时在评论中分享。谢谢,编码愉快!
转到机器人配置并选中启用流式传输端点复选框
我尝试在 Azure 中部署机器人。最初我在 azure 中创建了一个网络应用程序机器人,然后我从 azure 下载了代码。之后,我在我的 git 存储库中添加了所有生产文件,如 .bot、.env、web.config 文件。之后,我将我的 git 存储库添加到 Azure。我还在 app.js 文件和 web.config 文件中包含了 Microsoft 应用程序 ID 和应用程序密码。
当我开始在网络聊天中进行测试时,它 运行 不正确,而是显示“向您的机器人发送此消息时出错:HTTP 状态代码 NotFound
哪里漏了,求大神指教
我建议您确保您完全按照以下步骤操作:
- 首先确保您已将消息传递端点配置为
https
URL 因为它不支持http
. - 检查您指定的消息端点并确保它是 与您在机器人模拟器中的使用相同。查看屏幕截图。
- 在你的 bot azure 门户上转到
Channel
菜单并确保有 没有问题。请参阅下面的屏幕截图:
- Azure 门户
Configuration
在App Service Settings
下会有 是MicrosoftAppId
和MicrosoftAppPassword
不要改变这些 下载后。见下图
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
如果您还有任何疑虑,请随时在评论中分享。谢谢,编码愉快!
转到机器人配置并选中启用流式传输端点复选框