通过Microsoft Graph API访问Microsoft Teams频道消息时出现错误:Proxy_InternalServerError

Myk*_*hko 5 microsoft-graph microsoft-teams

通过委派权限获取团队频道消息时(用户是团队的成员):

https://graph.microsoft.com/beta/teams/ {team_id} / channels / {channel_id} / messages /

出现错误:

{
  "error": {
  "code": "Proxy_InternalServerError",
  "message": "Failure in forwarding request.",
  "innerError": {
    "request-id": "511b812c-df43-402b-b9dd-34ca1c1bd397",
    "date": "2019-02-01T14:22:50"
  }
}
Run Code Online (Sandbox Code Playgroud)

经过Graph Explorer和代码测试。

它对任何人有用吗?

小智 1

检查您的频道 ID。可能通道 ID 中缺少冒号或格式不正确。它应该采用以下格式 - 20:d0bba23c2fc8413991125a54a67dd13e@thread.skype