尝试使用 Graph 列出团队频道选项卡时遇到“404 未知错误”
Experiencing "404-unknown error" when attempting to lis team channel tabs with Graph
对于给定的团队,我想选择一个特定频道并列出该频道的选项卡。
使用 x 审查 ID:
我可以使用以下 HTTP GET
调用来查看群组:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
下面可以让我查看具体频道:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/
结果如下所示:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups('193cee12-xxxx-xxxx-xxxx-a8022fe6754c')/team/channels/$entity",
"id": "19:xxxxxxxxxxxxxxxxxx@thread.skype",
"displayName": "General",
"description": "Test ",
"email": "",
"webUrl": "https://teams.microsoft.com/l/channel/19%xxxxxxxxxxxxxxxxxxx%40thread.skype/General?groupId=193cee12-xxxx-xxxx-xxxx-a8022fe6754c&tenantId=d02b4c26-xxxx-xxxx-xxxx-0e19a90257d6"
}
当我尝试访问频道的任何属性时出现错误:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
错误如下所示:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "1b1040df-xxxx-xxxx-xxxx-04c7952674ba",
"date": "2019-11-04T11:xx:xx"
}
}
}
我是群主。
没有错误消息,所以很难找出问题所在。有没有其他人遇到过这种情况?
要获取有关频道的信息,您需要使用 teams
段而不是 groups
段。
\/ -- 'teams' here, not 'groups'
/v1.0/teams/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
https://docs.microsoft.com/en-us/graph/api/teamstab-list?view=graph-rest-1.0
对于给定的团队,我想选择一个特定频道并列出该频道的选项卡。
使用 x 审查 ID:
我可以使用以下 HTTP GET
调用来查看群组:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
下面可以让我查看具体频道:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/
结果如下所示:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups('193cee12-xxxx-xxxx-xxxx-a8022fe6754c')/team/channels/$entity",
"id": "19:xxxxxxxxxxxxxxxxxx@thread.skype",
"displayName": "General",
"description": "Test ",
"email": "",
"webUrl": "https://teams.microsoft.com/l/channel/19%xxxxxxxxxxxxxxxxxxx%40thread.skype/General?groupId=193cee12-xxxx-xxxx-xxxx-a8022fe6754c&tenantId=d02b4c26-xxxx-xxxx-xxxx-0e19a90257d6"
}
当我尝试访问频道的任何属性时出现错误:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
错误如下所示:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "1b1040df-xxxx-xxxx-xxxx-04c7952674ba",
"date": "2019-11-04T11:xx:xx"
}
}
}
我是群主。
没有错误消息,所以很难找出问题所在。有没有其他人遇到过这种情况?
要获取有关频道的信息,您需要使用 teams
段而不是 groups
段。
\/ -- 'teams' here, not 'groups'
/v1.0/teams/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
https://docs.microsoft.com/en-us/graph/api/teamstab-list?view=graph-rest-1.0