简体   繁体   English

justInTimeInstall 不适用于桌面团队会议中的 MessageExtension 应用程序

[英]justInTimeInstall not working for MessageExtension app in Meetings on Desktop Teams

I have a message extension only app that initiates a sequence of Task Modules during a Teams Meeting.我有一个仅限消息扩展的应用程序,可在团队会议期间启动一系列任务模块。 The app manifest is side-loaded by a Tenant Administrator.应用程序清单由租户管理员侧加载。 During the meeting, the host of the meeting (also the Tenant Administrator) chooses the message extension from the chat entry field and executes the command.在会议期间,会议主持人(也是租户管理员)从聊天输入字段中选择消息扩展名并执行命令。

The first step in the sequence is to add our bot to the meeting chat so that our app can be a full participant in the meeting.该序列的第一步是将我们的机器人添加到会议聊天中,以便我们的应用程序可以成为会议的完整参与者。 Our server gets the event to invoke our message extension and returns a response that has an action for 'justInTimeInstall'.我们的服务器获取事件以调用我们的消息扩展并返回一个响应,其中包含“justInTimeInstall”的操作。

When the host clicks on the button to execute the justInTimeInstall, we get an error message that fills the body of the task module that says: Unable to reach app.当主机单击按钮执行 justInTimeInstall 时,我们会收到一条错误消息,该消息填充了任务模块的主体,内容为:无法访问应用程序。 Please try again.请再试一次。

In the Dev Tools console log, I see an error reported:在开发工具控制台日志中,我看到一个错误报告:

?agent=electron&vers…600&ring=ring3_6:69
CDL: {
  "errorCode":"Error",
  "requestId":"m-178",
  "hostRendererId":"5e3ce6c0-2b1f-4285-8d4b-75ee78787346","
  component":"RequestHandler",
  "requestWindowId":"7a96f559-7ed3-48ba-a35d-1914afeff2a8",
  "operationType":"mutation",
  "operationName":"installApp",
  "message":"error while processing m-178: {
    \"name\":\"Error\",
    \"message\":\"Unexpected error value: {
      message: \\\"getGroupChatAppDefinition - No registeredApp found with
        appId (bda89c27-e179-45f8-9eee-3550a2691be5) for
        chat (19:meeting_OTQ5Njg0YzktNmM0OC00ZGNhLTg3NWMtYjE2NWQzZmJjZDk1@thread.v2),
      callerContext: (cdl)\\\",
      status: \\\"NotFound\\\"
    }\",
    \"stack\":[]
  } (reason: undefined)"
}
console.error   @   ?agent=electron&vers…600&ring=ring3_6:69
sendToConsoleAndDiagnosticLogs  @   main-ff5698c1ba89bafb.js:23
invoke  @   main-ff5698c1ba89bafb.js:23
error   @   main-ff5698c1ba89bafb.js:23
(anonymous) @   main-ff5698c1ba89bafb.js:23
safeWrapILoggerCall @   main-ff5698c1ba89bafb.js:23
error   @   main-ff5698c1ba89bafb.js:23
onError @   main-ff5698c1ba89bafb.js:23
setResponseAndEndScenario   @   main-ff5698c1ba89bafb.js:23
reconcileResponse   @   main-ff5698c1ba89bafb.js:23
onMessageReceived   @   main-ff5698c1ba89bafb.js:23
Vr.onResponseReceived   @   main-ff5698c1ba89bafb.js:23
(anonymous) @   main-ff5698c1ba89bafb.js:23
(anonymous) @   main-ff5698c1ba89bafb.js:36
(anonymous) @   main-ff5698c1ba89bafb.js:36
(anonymous) @   VM5:2
emit    @   VM4 sandbox_bundle.js:178
onMessage   @   VM4 sandbox_bundle.js:159

The ID referenced in the error does not correspond to any ID we use in our manifest or to any of the IDs in any of the conversations.错误中引用的 ID 与我们在清单中使用的任何 ID 或任何对话中的任何 ID 都不对应。

Using exactly the same setup, this step works fine if the meeting is run from a web browser.使用完全相同的设置,如果会议是从 web 浏览器运行的,则此步骤可以正常工作。 It also works if the Message Extension app is added to the chat from the Chat panel in the Desktop app's main window.如果从桌面应用程序的主 window 中的聊天面板将消息扩展应用程序添加到聊天中,它也可以工作。

Once our bot is successfully added, we can invoke the Message Extension from the meeting chat within the meeting window without error -- we only need to add our app to the chat once.成功添加我们的机器人后,我们可以从会议 window 内的会议聊天中调用消息扩展而不会出错——我们只需将我们的应用程序添加到聊天中一次。

I feel like i'm missing something obvious but I can't think of where to look for the solution.我觉得我错过了一些明显的东西,但我想不出在哪里寻找解决方案。

Above issue resolved by uploading app to Teams admin center instead of side loading.通过将应用程序上传到 Teams 管理中心而不是侧面加载解决了上述问题。 Reference related to same: https://github.com/MicrosoftDocs/msteams-docs/issues/6537#issuecomment-1196299673相关参考: https://github.com/MicrosoftDocs/msteams-docs/issues/6537#issuecomment-1196299673

暂无
暂无

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

相关问题 Microsoft Teams 应用程序 - 在 web 但不适用于桌面或移动 Teams 应用程序的链接展开 - Microsoft Teams app - link unfurling working on web but not desktop or mobile Teams apps 无法在 MS Teams 桌面应用程序上运行选项卡 - Unable to run tab on MS Teams Desktop App 团队:如何从桌面应用程序中的自适应卡打开任务模块 - Teams: How to open Task Module from Adaptive Card in desktop app MS Teams 消息扩展 submitTask 在 iPhone Teams 应用程序中不起作用 - MS Teams Message Extension submitTask not working in iPhone Teams App Microsoft Teams bot在模拟器和localhost上运行,但不是Teams App - Microsoft Teams bot working from emulator and localhost but not teams app 有没有办法检测用户是从团队移动应用程序还是桌面应用程序打字? - Is there a way to detect whether a user is typing from teams mobile app or desktop app? 从 Teams 桌面客户端启动固定应用程序时如何避免出现到达此应用程序错误的问题 - How to avoid There Was a Problem Reaching This App Error When Launching Pinned App from Teams Desktop Client 在 MS Teams 桌面应用程序中使用 ToggleVisibility 操作时自适应卡发送错误消息 - Adaptive card sends error message when using ToggleVisibility action in MS Teams desktop app 自适应卡片提交操作在 iOS 移动应用程序上的 MS Teams 中不起作用 - Adaptive card Submit Actions are not working in MS Teams on iOS mobile app 为什么我无法在桌面团队应用中使用 Microsoft Bot Framework 打开带有 ActionTypes.OpenUrl 的网站? - Why can't I open a website with ActionTypes.OpenUrl using Microsoft Bot Framework in the desktop Teams app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM