Microsoft Teams 连接器错误 "ngClickDecorator: value not found in enum type. value:"

Microsoft Teams Connector error "ngClickDecorator: value not found in enum type. value:"

我目前在尝试保存连接器配置时遇到此错误:

21T21:05:12.087Z ngClickDecorator: value not found in enum type. value: 

 21T21:05:12.155Z Received error from connectors {"seq":1611247472155,"timestamp":1611263112143,"flightSettings": {"Name":"ConnectorFrontEndSettings","AriaSDKToken":"d127f72a3abd41c9b9dd94faca947689-d58285e6-3a68-4cab-a458-37b9d9761d35-7033","SPAEnabled":true,"ClassificationFilterEnabled":true,
    "ClientRoutingEnabled":true,"EnableYammerGroupOption":true,
    "EnableFadeMessage":false,"EnableDomainBasedOwaConnectorList":false,
    "EnableDomainBasedTeamsConnectorList":false,"DevPortalSPAEnabled":true,
"ShowHomeNavigationButtonOnConfigurationPage":false,"DisableConnectToO365InlineDeleteFeedbackPage":true},"status":500,"clientType":"SkypeSpaces",
    "connectorType":"c6adb316-46b2-4e46-a511-8b4947b3d554","name":"handleMessageError"}

SO post: 非常接近我的问题,但是我已经将我的 configurationURL 添加到我的有效域,并从清单中删除了我的,但仍然没有运气。除非我缺少特定的配置,否则我也都设置了我的权限?

任何建议,下面是我的清单和代码: 清单:

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json",
  "manifestVersion": "1.8",
  "version": "1.0.3",
  "showLoadingIndicator": true,
  "isFullScreen": true,
  "id": "c6adb316-46b2-4e46-a511-8b4947b3d554",
  "packageName": "com.test",
  "developer": {
    "name": "Test, Inc",
    "websiteUrl": "https://test.com",
    "privacyUrl": "https://test.com/privacy",
    "termsOfUseUrl": "https://test.com/toc"
  },
  "icons": {
    "color": "color.png",
    "outline": "outline.png"
  },
  "connectors": [
    {
      "connectorId": "c6adb316-46b2-4e46-a511-8b4947b3d554",
      "scopes": [
        "team"
      ],
      "configurationUrl": "https://localdev-test.test.com/connector"
    }
  ],
  "name": {
  "short": "Test Development",
  "full": "Test for Microsoft Teams"
  },
  "description": {
    "short": "Test Development",
    "full": "Test for Microsoft Teams"
  },
  "accentColor": "#FFFFFF",
  "staticTabs": [
    {
      "entityId": "22f101b6-f9a2-44d3-8eba-74309295f398",
      "scopes": [
        "personal"
      ],
      "context":[
        "personalTab",
        "channelTab"
      ],
      "name": "TestSite",
      "contentUrl": "https://localdev-test.test.com",
      "websiteUrl": "https://localdev-test.test.com",
      "searchUrl":  "https://localdev-test.test.com"
    }
  ],
  "devicePermissions": [
    "notifications",
    "openExternal"
  ],
  "permissions": [
    "identity",
    "messageTeamMembers"
  ]
}

代码:

ngOnInit(): void {
    microsoftTeams.initialize();
    microsoftTeams.settings.registerOnSaveHandler((saveEvent) => {
      microsoftTeams.settings.setSettings({
        entityId: 'Create',
        contentUrl: 'https://localdev-test.test.com/connector',
        removeUrl: 'https://localdev-test.test.com/connector',
        configName: 'Create'
      });

      microsoftTeams.settings.getSettings((settings) => {
        this.webhookUrl = settings.webhookUrl;
        localStorage.setItem('connectorWebHook', this.webhookUrl);
      });

      saveEvent.notifySuccess();
    });
  }

  onClick(): void {
    if (!this.webhookUrl) {
      microsoftTeams.settings.setValidityState(true);
    }
  }

这是一个 Microsoft 错误,连接器门户上的“连接器配置页面”是不可变的(即使它位于编辑字段中)。这意味着您在创建连接器时设置的 URL 不能通过开发更改,否则您将收到此错误。因此,只需使用我更改的配置通过门户创建一个新连接器 URL 就解决了我的问题。

对他们 git 的评论也指出了这一点:https://github.com/MicrosoftDocs/msteams-docs/issues/1738#issuecomment-647675420