[英]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.