本文介绍了MS Teams机器人部署拒绝自动生成的manifest.json的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重新部署了我的(侧载)Teams应用程序,该应用程序实现了一个非常简单的机器人,该机器人每天自动向房间发送消息.

I redeployed my (sideloaded) Teams app that implements a very simple bot that auto-messages rooms every day.

这已经工作了很长时间了,我做了些微的改动,所以我需要重新部署,从团队室中删除,然后重新添加.

This was working for a long time, and I made a slight change so I needed to redeploy, remove from the Teams room, and add it back.

在我删除并尝试将其重新添加(不更改任何设置)之后,我现在收到一条错误消息,告诉我清单解析失败"

After I removed and tried to add it back (without changing any of the settings) I now get an error telling me "Manifest Parsing has failed"

我的控制台日志中也出现以下错误:

I also get the following errors in my console log:

清单在下面.这是在团队内部100%生成的,不是我对自己进行的编辑,因此不确定为什么它告诉我它无法解析(某些字段已编辑):

Manifest is below. This was 100% generated within Teams, and is not something I made edits to myself, so not sure why it's telling me it can't parse (some fields redacted):

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json",
  "manifestVersion": "1.8",
  "version": "1.0.0",
  "id": "dbb36443-1bce-48e0-81d2-b30aa3698144",
  "packageName": "com.prosourcer-teams",
  "developer": {
    "name": "MY NAME",
    "websiteUrl": "URL",
    "privacyUrl": "URL",
    "termsOfUseUrl": "URL"
  },
  "icons": {
    "color": "color.png",
    "outline": "outline.png"
  },
  "name": {
    "short": "ps-app",
    "full": "ps-chatBot"
  },
  "description": {
    "short": "short desc",
    "full": "full desc"
  },
  "accentColor": "#FFFFFF",
  "bots": [
    {
      "botId": "bfcb70de-e093-4733-b236-742eb3b0aad8",
      "scopes": [
        "personal",
        "team",
        "groupchat"
      ],
      "supportsFiles": false,
      "isNotificationOnly": false
    }
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ],
  "validDomains": [
    "URL"
  ]
}

更新:如果我尝试将漫游器添加到单个团队中,那么我的控制台也会出现以下错误.我已经确认appId是正确的,不确定我应该在哪里设置TeamsId:

UPDATE: If I try to add the bot to an individual team, I also get the following error in my console. I have confirmed that appId is correct, not sure where I'm supposed to be setting my TeamsId:

推荐答案

如果周围仍然存在现有安装,则可能是导致这种情况的原因.尝试增加版本号.当前是1.0.0,请尝试将其提高到1.0.1或1.1.0.

If there's an existing installation somewhere still around it might be causing this. Try incrementing the version number. Currently it's 1.0.0, try bumping even to 1.0.1 or 1.1.0.

更新-团队中可能存在问题-今天在您面前有一个类似问题的问题-请参见清单解析失败".从App Studio安装团队应用程序时.听起来像是Teams或App Studio的问题.如果是这样,您可以尝试手动将清单上传到内部公司商店.

Update - maybe there's an issue in Teams - there is a question just before yours today with a similar issue - see "Manifest parsing has failed" when installing teams apps from App Studio . Sounds like an issue with Teams or App Studio. If so, you can try manually uploading the manifest to your internal company store.

这篇关于MS Teams机器人部署拒绝自动生成的manifest.json的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 12:48