gpt4 book ai didi

microsoft-graph-api - Microsoft Graph 502 错误网关 - 创建专用 channel (测试版 API)时无法执行后端请求

转载 作者:行者123 更新时间:2023-12-04 13:36:52 27 4
gpt4 key购买 nike

我正在尝试使用 Microsoft Graph API 在团队中创建私有(private) channel 。我正在使用 beta API 因为membershipType (将 channel 设为私有(private))在 1.0 中不可用应用程序接口(interface)。我的代码直到昨天都运行良好,现在我收到了 502 Bad Gateway错误,带有消息 Failed to execute backend request. :

Server error: `POST https://graph.microsoft.com/beta/teams/{my-team-id-is-here}/channels` resulted in a `502 Bad Gateway` response:
{
"error": {
"code": "BadGateway",
"message": "Failed to execute backend request.",
"innerError": {
"request-id": "2ceece83-e3ff-455d-bc7b-b82f5454269f",
"date": "2020-04-17T12:45:12"
}
}
}

与此请求一起发送的 JSON 正文:
displayName = "Private Channel Test"
membershipType = "private"
description = "Test"

我拥有我的 AccessToken 中的所有特权我是 Owner这支球队的。如果我切换到 1.0具有相同代码的 API, channel 被创建,但是是公共(public)的,这是正确的,因为 membershipType在此 API 中不可用,但在这里我需要创建私有(private) channel ,而不是公共(public) channel 。

我的 token 的范围:
Files.ReadWrite.All Group.ReadWrite.All GroupMember.Read.All offline_access openid People.Read.All profile Sites.Read.All Sites.ReadWrite.All User.Read User.Read.All
有没有人遇到过这个问题,以及解决方案?

最佳答案

问题是我达到了 30 个私有(private) channel 的限制,即使我的私有(private) channel 都被“删除”了,它们在被永久删除后仍然可以恢复 30 天。我与一个新团队进行了测试,我的代码运行良好。

有一个详细的错误会很好,我不会花时间调试不是真正错误的东西。

尝试从 Microsoft Teams 创建私有(private) channel 时,我收到错误“您的团队已达到私有(private) channel 的最大数量。”。我之前应该试过这个...

更多信息在这里:https://docs.microsoft.com/en-us/microsoftteams/private-channels

关于microsoft-graph-api - Microsoft Graph 502 错误网关 - 创建专用 channel (测试版 API)时无法执行后端请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61272195/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com