简体   繁体   English

在 MS Teams 桌面应用程序中使用 ToggleVisibility 操作时自适应卡发送错误消息

[英]Adaptive card sends error message when using ToggleVisibility action in MS Teams desktop app

This morning we started getting the standard bot error message in MS teams desktop client when using a card with toggleVisbility actions.今天早上,当使用带有 toggleVisbility 操作的卡片时,我们开始在 MS 团队桌面客户端中收到标准机器人错误消息。 Selecting the button to toggle visbility on part of the card results in the below error, even though the toggle works as expected!选择按钮来切换部分卡片的可见性会导致以下错误,即使切换按预期工作也是如此!

bot error message机器人错误信息

The adaptive card code looks something like this:自适应卡代码如下所示:

{
                    "type": "ActionSet",
                    "actions": [
                        {
                            "type": "Action.ToggleVisibility",
                            "title": "Alerts",
                            "targetElements": [
                                "Incidents",
                                {
                                    "elementId": "Metrics",
                                    "isVisible": false
                                },
                                {
                                    "elementId": "Admin",
                                    "isVisible": false
                                }
                            ]
                        },
                        {
                            "type": "Action.ToggleVisibility",
                            "title": "Actions",
                            "targetElements": [
                                "ActionButton"
                            ]
                        }
                    ]
                }

This message would be expected if the bot app doesn't respond to a message/action, however the toggle action shouldn't be sending any data to the bot applicaiton.如果机器人应用程序不响应消息/操作,则预期会出现此消息,但是切换操作不应向机器人应用程序发送任何数据。 I confirmed this in the teams web client using the network tracing dev tool.我使用网络跟踪开发工具在团队 Web 客户端中确认了这一点。 When selecting the toggle action no new network calls are made.选择切换操作时,不会进行新的网络调用。

We are not seeing this error in either the web client or the mobile client, only in Teams Desktop app.我们没有在 Web 客户端或移动客户端中看到此错误,仅在 Teams Desktop 应用程序中看到。

This bot has been running for months without this issue and we didn't change the code, which makes me believe this is a MS teams side bug that was recently introduced.这个机器人已经运行了几个月没有这个问题,我们没有更改代码,这让我相信这是最近引入的 MS 团队方面的错误。

Also: This same issue was independently identified in the Adaptive Cards Project.另外:在自适应卡片项目中独立发现了同样的问题。 https://github.com/microsoft/AdaptiveCards/issues/8145 https://github.com/microsoft/AdaptiveCards/issues/8145

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM