[英]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.
请求请帮助解决此问题。
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.