Getting BadGateway/NotFound response for Graph API onlineMeetings/meetingId/recordings/recordingId/content request.

Ankitash Tulyani 0 Reputation points
2023-08-31T05:24:10.22+00:00

I was trying to retrieve the teams meeting recordings for an application and am using Graph API to do so. Here are the steps I followed to achieve it:

  1. Got an access token using client credentials auth flow.
  2. Made GET request to https://graph.microsoft.com/beta/users/{userId}/onlineMeetings/{meetingId}/recordings to get the recording Ids of different meeting recordings
  3. Made a GET request to https://graph.microsoft.com/beta/users/{userId}/onlineMeetings/{meetingId}/recordings/{recordingId}/content to get the recording video

Step 2 gave 4 different recordings(recordingIds) as response. But when I tried to retrieve the recordings for these 4(Step3), only 3 of them gave the video but the latest recording's response was:

{
    "error": {
        "code": "BadGateway",
        "message": "Failed to process request.",
        "innerError": {
            "date": "2023-08-31T05:13:30",
            "request-id": "34daaf8c-cd63-46e2-9709-382d3382173c",
            "client-request-id": "34daaf8c-cd63-46e2-9709-382d3382173c"
        }
    }
}

This issue has happened previously for other recordings as well giving a "NotFound" code for some and "BadGateway" for some requests, but started working fine after some time. Any help with this is highly appreciated.

Thanks.

Microsoft Graph Teamwork API
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,386 questions
{count} votes