Microsoft Teams:“出了点问题"在将我的自定义应用程序安装到我组织的团队中时 [英] Microsoft Teams: "Something went wrong" while installing my custom app into my organization's team

查看:58
本文介绍了Microsoft Teams:“出了点问题"在将我的自定义应用程序安装到我组织的团队中时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 Microsoft Teams 创建了一个应用程序,可以将其添加到团队中.该应用程序是使用 Microsoft Bot 框架创建的聊天机器人.我已经制作了另外两个具有类似功能的应用,可以正常安装.

I have created an app for Microsoft Teams that one can add to a team. The app is a chatbot created with the Microsoft Bot framework. I have already made two other apps with similar functionality that can be installed fine.

当我使用 App Studio(并链接到现有机器人)创建我的应用程序时,一切正常,但是当我尝试将其添加到团队时,我收到出现问题"消息,并且没有请求发送到我的机器人要么...

When I create my app using the App Studio (and link to an existing bot), everything is fine but when I try to add that to a team I get the "something went wrong" message and no request is sent to my bot either...

有没有人遇到过类似的问题,或者有人知道如何调试吗?我的清单如下.

Has anyone faced a similar issue or does someone know how to debug this? My manifest is below.

清单如下(替换了 id).

The manifest is below (with ids replaced).

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
    "manifestVersion": "1.5",
    "version": "0.0.2",
    "id": "my-id-is-here",
    "packageName": "nl.getsofia.teams.acceptance",
    "developer": {
        "name": "Sofia Melius B.V.",
        "websiteUrl": "https://www.getsofia.nl",
        "privacyUrl": "https://www.getsofia.nl/",
        "termsOfUseUrl": "https://www.getsofia.nl/"
    },
    "icons": {
        "color": "color.png",
        "outline": "outline.png"
    },
    "name": {
        "short": "Sofia Acceptance 2",
        "full": "Sofia Acceptance Nice"
    },
    "description": {
        "short": "ACCEPTANCE bot",
        "full": "ACCEPTANCE bot long description"
    },
    "accentColor": "#FFFFFF",
    "bots": [
        {
            "botId": "my-bot-id-is-here",
            "scopes": [
                "personal",
                "team"
            ],
            "commandLists": [
                {
                    "scopes": [
                        "personal"
                    ],
                    "commands": [
                        {
                            "title": "Add user",
                            "description": "A manager can add a user"
                        },
                        {
                            "title": "Get overview",
                            "description": "Get an overview of registered hours"
                        },
                        {
                            "title": "Projects",
                            "description": "Manage all projects"
                        },
                        {
                            "title": "Register hours",
                            "description": "Register your hours"
                        },
                        {
                            "title": "Settings",
                            "description": "Set hour registration reminder times"
                        }
                    ]
                }
            ],
            "supportsFiles": false,
            "isNotificationOnly": false
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "*.sofiamelius.nl",
        "*.getsofia.nl"
    ]
}

推荐答案

如果在您尝试将 bot 部署到 Teams(而不是尝试在 Teams 中与其交谈)时发生这种情况,抱歉,出了点问题错误"消息通常是由未设置机器人服务中的团队频道引起的.您必须设置清单并打开频道.

If this is occurring when you are attempting to deploy the bot to Teams (as opposed to trying to talk to it in Teams), the "Sorry, something went wrong" message is usually caused by the Teams channel in the Bot Service not being set up. You must both set up the manifest and turn on the channel.

要打开频道,只需在 Azure 门户中导航到您的机器人服务,选择频道边栏选项卡,然后单击团队以保存并激活频道(我不记得了,但我认为您没有在此处配置任何设置).

To turn on the channel, just navigate to your Bot Service in the Azure Portal, select the Channels blade, and then click on Teams to save and activate the channel (I can't remember but I don't think you have to configure any settings here).

完成后,您应该能够使用任何可用的方法将您的机器人发布到 Teams.

After that is complete, you should be able to publish your bot to Teams using any available method.

这篇关于Microsoft Teams:“出了点问题"在将我的自定义应用程序安装到我组织的团队中时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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