Microsoft Bot 在 Teams 和 Bot Emulator 中均未响应 [英] Microsoft Bot is not responding in either Teams nor the Bot Emulator

查看:86
本文介绍了Microsoft Bot 在 Teams 和 Bot Emulator 中均未响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

  • 在本地主机上运行的相应 Web 应用程序.
  • 为在 Bot Framework 中活动的 MS Teams 开放的频道,始终显示正在运行"(没有问题).
  • 使用一些预设的机器人命令从 git 下载了一个 VS19 项目.

但是,当我通过 ngrok 托管应用程序并尝试通过团队联系机器人时,会显示带有命令的下拉菜单,但机器人不回复任何命令.使用机器人模拟器时,它也不会对任何消息做出反应(见下文).

However, when I host the app via ngrok and try to contact the bot via teams the dropdown menu with the commands is diplayed, but the the bot replies to none of them. When using the Bot Emulator, it also does not react to any messages (see below).

You said:
hello

Restart conversation from here
You said:
help

Restart conversation from here
Connectivity Status: Connected
Suggested Actions Container: Is empty

[10:03:51]Connecting to bot on https://localhost:3979/api/messages
[10:03:51]Emulator listening on http://[::]:58187
[10:03:52]-> conversationUpdate
[10:03:52]ngrok listening on https://67fe6eb30077.ngrok.io
[10:03:52]ngrok traffic inspector:http://127.0.0.1:4040
[10:03:52]Will bypass ngrok for local addresses
[10:03:52]POST400directline/conversations/<conversationId>/activities
[10:03:58]-> message hello

推荐答案

由于我无法解决问题,所以我重新开始注册过程,这次是使用我们的租户帐户.除了导致 AADSTS700016-Error 服务器端之外,它没有太大变化.经过一番研究,我偶然发现了 这篇 文章,它解释了问题,但也显示了解决方案,即设置signInAudience":AzureADandPersonalMicrosoftAccount"在注册清单中.由于某种原因,此选项不适用于我的应用,因此我将其设置为signInAudience":AzureADMultipleOrgs",暂时解决了该问题.

Since i was unable to resolve the issue I started the registration process over, this times with our tenants account. It didn't change very much except for causing an AADSTS700016-Error server side. After some research I stumbled accross this article, which explains the issue but also shows the solution, namely setting "signInAudience": "AzureADandPersonalMicrosoftAccount" in the registration manifest. This option was not available for my app for some reason so I set it to "signInAudience": "AzureADMultipleOrgs", which resolved the issue for now.

这篇关于Microsoft Bot 在 Teams 和 Bot Emulator 中均未响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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