Bot在本地计算机上的Bot Framework Emulator中工作,但在部署到Microsoft Azure之后不能 [英] Bot works in Bot Framework Emulator on local computer, but not after it's deployed to Microsoft Azure

查看:163
本文介绍了Bot在本地计算机上的Bot Framework Emulator中工作,但在部署到Microsoft Azure之后不能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在测试在
Virtual Studio Community 2019 中启动机器人项目所需的步骤,在 Bot Framework中测试机器人模拟器(V4),然后将该bot部署到Microsoft Azure。



现在,我正在测试一个简单的Echo虚拟工作室社区2019中可用的Bot模板。当我在Virtual Studio Community 2019中运行它时,使用提供的"localhost"在Bot框架模拟器中打开机器人。 URL,并在模拟器的
"实时聊天"中测试它。窗口,完美无缺



然而,在我使用 进行部署此机器人的过程之后 Azure CLI(命令行工具),我发现当我进入"在网络聊天中测试"时机器人没有响应对于Bot Channels Registration资源,在BotID之后命名为
。当我查看频道页面时,我看到以下错误:"向您的机器人发送此消息时出错:HTTP状态代码NotFound 。"



我已经尝试打开"Always On";对于bot,启用Application Insights(ASP.NET,ASP.NET Core),并集成一个 使用bot的应用程序洞察服务。



我该如何解决这个问题?

解决方案

您已在Azure App Service WebApps论坛上发布了该问题,该论坛专用对于Azure WebApps查询,但是对于Bot Framework问题的专门帮助,您可以在 SO ,您将从中获得有关的见解合适的专家。


查看文档以获取其他支持选项:
Bot Framework其他资源。 

在此期间,
你可以结账

调试机器人
以调试和隔离问题。请尝试这些文档中概述的步骤;如果
bot不响应预期的输出,转到  Bot
在网络聊天中不起作用
。否则,请转到  Bot
适用于网络聊天但不适用于其他渠道


Right now, I'm testing the steps required when it comes to starting a bot project in Virtual Studio Community 2019, testing a bot in Bot Framework Emulator (V4), and then deploying that bot to Microsoft Azure.

Right now, I'm testing a simple Echo Bot template available in Virtual Studio Community 2019. When I run it in Virtual Studio Community 2019, open the bot in Bot Framework Emulator using a provided "localhost" URL, and test it in the emulator's "Live Chat" window, it works perfectly fine.

However, after I go through the process of deploying this bot using Azure CLI (command-line tool), I find that the bot doesn't respond when I go to "Test in Web Chat" for the Bot Channels Registration resource, which is named after the BotID. When I look at the channels page, I see the following error: "There was an error sending this message to your bot: HTTP status code NotFound."

I already tried turning on "Always On" for the bot, enabling Application Insights (ASP.NET, ASP.NET Core), and integrating an  application insights service with the bot.

How should I resolve this issue?

解决方案

You have posted the question on Azure App Service WebApps forum, which is dedicated for Azure WebApps queries, however for a specialized assistance on Bot Framework issue, you may just re-post your query on SO, where you will receive insights from the right set of experts.
Checkout the document for additional support options:
Bot Framework additional resources
In the interim, you may checkout Debug a bot to debug and isolate the issue. Kindly try the steps outlined in these docs; If bot does not respond with the expected output, go to Bot does not work in Web Chat. Otherwise, go to Bot works in Web Chat but not in other channels.


这篇关于Bot在本地计算机上的Bot Framework Emulator中工作,但在部署到Microsoft Azure之后不能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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