将此消息发送到您的机器人时出错:HTTP状态代码未找到 [英] There was an error sending this message to your bot: HTTP status code NotFound
问题描述
我试图以天蓝色部署该机器人.最初,我在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.
推荐答案
我建议您确保完全遵循以下步骤:
- 首先请确保已将消息传递终结点配置为
https
URL,因为它不支持http
. - 检查您指定的消息传递端点,并确保它是 与您在漫游器仿真器中使用的相同.查看屏幕截图.
- First of all make sure you have configured the messaging endpoint as
an
https
URL as it does not supportshttp
. - Check Your Messaging endpoint that you specified and make sure it is same as your using in the bot emulator. See the screen shot.
- 在您的bot azure门户上,转到
Channel
菜单,并确保有 没有问题.请参见下面的屏幕截图:
- On your bot azure portal go to
Channel
menu and make sure there is no issues. see the screen shot below:
-
在
- Azure门户
Configuration
是MicrosoftAppId
和MicrosoftAppPassword
请勿更改这些 下载后.见下图
App Service Settings
下的- Azure portal
Configuration
underApp Service Settings
there will beMicrosoftAppId
andMicrosoftAppPassword
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屋!