'Microsoft Graph API CallRecord with expanded sessions returns an error

When I execute a request for a specific callRecord like this it works: https://graph.microsoft.com/v1.0/communications/callRecords/{id}

But when I do this I get an error (500): https://graph.microsoft.com/v1.0/communications/callRecords/{id}?$expand=sessions

{
    "error": {
        "code": "InternalServerError",
        "message": "Object reference not set to an instance of an object.",
        "innerError": {
            "date": "2022-04-14T12:21:34",
            "request-id": "{guid}",
            "client-request-id": "{guid}"
        }
    }
}

It looks like this doesn't happen for every callRecord though. We started seeing this error in our logging around 2022-04-11T00:24:00Z, now we get thousands of those.



Solution 1:[1]

It was an internal issue on Microsoft's side. Everything seems to be fixed.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 J Flex