简体   繁体   English

使用 Team 的附件按钮在机器人应用程序中上传文件时,Microsoft Teams 返回错误

[英]Microsoft Teams returning error when file is uploaded in bot application using Team's attachment button

We have an bot created on bot framework and enabled for Microsoft Teams channel.我们在机器人框架上创建了一个机器人,并为 Microsoft Teams 频道启用。 In the bot, the attachment functionality is enabled and user can send files to bot using Teams and it was working perfectly fine.在 bot 中,附件功能已启用,用户可以使用 Teams 向 bot 发送文件,并且运行良好。 But from past few week it stops working and uploading file in Team's bot chat is returning error.但是从过去几周开始,它停止工作,并且在 Team 的机器人聊天中上传文件返回错误。 The attachment functionality is working when file is attached to user's chat and the problem is only coming on bot.当文件附加到用户的聊天时附件功能正在工作,并且问题仅出现在机器人上。 It seems the issue is related to Teams client as the uploaded file disappears just after being upload.这个问题似乎与 Teams 客户端有关,因为上传的文件在上传后就消失了。 Please find the screenshot below with error message that appears when the file being uploaded automatically disappears in between.请找到下面的屏幕截图,其中包含当上传的文件在两者之间自动消失时出现的错误消息。 Request to please help with this issue.请求请帮助解决此问题。

Teams Bot 文件上传消息

I am having the same issue and found while looking into the teams logs that there is an access denied error when reading back the file.我遇到了同样的问题,在查看团队日志时发现在读回文件时出现拒绝访问错误。 The file itself is uploaded:文件本身被上传:

"https://teams.microsoft.com/api/mt/emea/beta/apps/files/file?fileFullUrl=https://tenant-my.sharepoint.com/personal/xxxx/Documents/Microsoft Teams-Chatdateien/test2.txt", status: 401, response: {"errorCode":"UnauthorizedAccess"}, errorCode: UnauthorizedAccess, requestId: undefined, correlationId: undefined, afdCorrelationId: Ref A: 6614FF68C2514756A3FC61C01FA13FC2 Ref B: AM3EDGE0708 Ref C: 2020-09-10T16:03:21Z "https://teams.microsoft.com/api/mt/emea/beta/apps/files/file?fileFullUrl=https://tenant-my.sharepoint.com/personal/xxxx/Documents/Microsoft Teams-Chatdateien/ test2.txt”,状态:401,响应:{“errorCode”:“UnauthorizedAccess”},errorCode:UnauthorizedAccess,requestId:未定义,correlationId:未定义,afdCorrelationId:Ref A:6614FF68C2514756A3FC61C01FA13FC2 Ref B:C0802GE 10T16:03:21Z

I already raised a ticket with Microsoft, but the team responded that the issue is most likely with my bot (although I did not change anything)我已经向微软提出了一张票,但团队回应说这个问题很可能出在我的机器人上(虽然我没有改变任何东西)

Just FYI, Microsoft responded to my support ticket and fixed the issue for most tenants it seems.仅供参考,微软回应了我的支持请求并解决了大多数租户的问题。

https://answers.microsoft.com/en-us/msteams/forum/all/uploading-file-in-11-chat-with-bot-results-in-file/9449f0c0-1281-48f7-9535-b25ddd1b3753 https://answers.microsoft.com/en-us/msteams/forum/all/uploading-file-in-11-chat-with-bot-results-in-file/9449f0c0-1281-48f7-9535-b25ddd1b3753

If you're still affected you may need to reach out to them for further assistance如果您仍然受到影响,您可能需要与他们联系以获得进一步的帮助

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

相关问题 在 MS Teams 中安装 bot 时获取所有团队成员 - Get all team members when bot is installed in MS Teams 面临错误:对于使用 Bot Framework SDK 构建的 MS Teams Bot,此机器人不支持文件附件 - Facing Error: File attachments aren’t supported for this bot for MS Teams Bot built using Bot Framework SDK 微软团队 | Microsoft bot 框架 - 在任务/获取时返回 502 错误 - MS Teams | Microsoft bot framework - Returns 502 error on task/fetch Microsoft-Teams自定义漫游器:发送回复时出错 - Microsoft-Teams custom bot : error while sending a reply MS Teams bot - 如何从 nodejs 代码下载在团队中上传的文件 - MS Teams bot - how to download file that was uploaded in teams from nodejs code 使用 Bot Framework 通过 NodeJS 发布到 Microsoft Teams 频道 - Using the Bot Framework to post to a Microsoft Teams channel with NodeJS Microsoft Teams - 深度链接到机器人选项卡 - Microsoft Teams - Deeplink to bot tab 使用NodeJS中的Microsoft Bot Framework将Excel内容作为附件发送 - Sending Excel Content as attachment using Microsoft Bot Framework in NodeJS 如何使用 Microsoft Graph 客户端作为其他用户从 Microsoft Teams Bot 发送电子邮件? - How to send email from Microsoft Teams Bot using Microsoft Graph Client as a different user? 使用Graph API响应Microsoft Teams中的漫游器调用 - Respond to a bot call in Microsoft Teams with Graph API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM