You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Bot添加至Microsoft Teams后返回"机器人不在对话名单中"错误排查

Teams消息扩展生产环境异常问题

我们基于Azure Bot在Microsoft Teams中开发了消息扩展功能,用户通过团队频道的对话入口使用该服务。流程如下:接收用户在消息扩展中输入的搜索关键词,在数据库中匹配对应条目,用户选中条目后,自动在团队频道发布指向目标资源的链接消息。

该功能在QA、预发布等测试环境均正常运行,但生产环境出现以下异常:

  • 部分搜索关键词能返回预期的「未找到内容」响应
  • 多数搜索关键词触发502错误,Bot日志显示错误信息:The bot is not part of the conversation roster

我们通过侧加载(sideloading)方式部署Bot及关联的Teams应用清单,经核对,生产环境与其他环境的Bot及应用配置完全一致。

已查阅Stack Overflow及Microsoft PowerUsers论坛相关内容,多数建议需在Azure中将Bot添加至Teams,此操作已完成,但生产环境问题仍未解决。

以下为应用清单文件(其中引用了已发布至AppSource的eduMe应用):

{
  "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
  "manifestVersion": "1.11",
  "version": "1.1.3",
  "id": "28beac77-2765-4248-8a25-02779d7242ca",
  "packageName": "com.microsoft.teams.extension",
  "developer": {
    "name": "eduMe",
    "websiteUrl": "https://edume.com",
    "privacyUrl": "https://edume.com",
    "termsOfUseUrl": "https://edume.com"
  },
  "icons": {
    "color": "resources/edume-hexamark.png",
    "outline": "resources/edume-outline-hexamark.png"
  },
  "name": {
    "short": "eduMe Beta_test2",
    "full": "eduMe Beta_test2"
  },
  "description": {
    "short": "Giving the deskless workforce seamless access to relevant knowledge",
    "full": "Training your workforce doesn't need to be painful. No more clunky authoring tools and dated, desktop based learning. eduMe helps you deliver the training when and where your workforce need it."
  },
  "accentColor": "#F3F3FF",
  "bots": [
    {
      "botId": "e9aa4df6-ed17-423f-bb7a-5cb1f6f090d7",
      "scopes": ["personal", "team", "groupchat"],
      "supportsFiles": false,
      "isNotificationOnly": true
    }
  ],
  "composeExtensions": [
    {
      "botId": "29b96f25-2032-4fa4-8abd-5ac8f652699f",
      "commands": [
        {
          "id": "searchQuery",
          "context": ["compose", "commandBox"],
          "description": "Command to search courses.",
          "title": "Search",
          "type": "query",
          "parameters": [
            {
              "name": "searchQuery",
              "title": "Search Query",
              "description": "Your search query",
              "inputType": "text"
            }
          ]
        }
      ]
    }
  ],
  "configurableTabs": [
    {
      "configurationUrl": "https://edume-ms-teams.herokuapp.com/index.html#/config",
      "canUpdateConfiguration": true,
      "scopes": ["team", "groupchat"]
    }
  ],
  "staticTabs": [
    {
      "entityId": "index",
      "name": "Home",
      "contentUrl": "https://edume-ms-teams.herokuapp.com/index.html#/tab",
      "websiteUrl": "https://edume-ms-teams.herokuapp.com/index.html#/tab",
      "scopes": ["personal"]
    }
  ],
  "permissions": ["identity", "messageTeamMembers"],
  "validDomains": [
    "localhost",
    "*.microsoftonline.com",
    "*.herokuapp.com",
    "*.botframework.com",
    "edume.com"
  ],
  "webApplicationInfo": {
    "id": "29b96f25-2032-4fa4-8abd-5ac8f652699f",
    "resource": "api://edume-ms-teams.herokuapp.com/29b96f25-2032-4fa4-8abd-5ac8f652699f"
  }
}

内容的提问来源于stack exchange,提问作者James

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 02:05:18