microsoftgraph / microsoft-graph-comms-samples

Microsoft Graph Communications Samples
MIT License
211 stars 236 forks source link

Unable to retrieve a large number of participants after accessing ssl.ClientCertificateErrors #754

Open SharePointX opened 3 months ago

SharePointX commented 3 months ago

Describe the issue

I have a question about the sample code in Samples/V1.0Samples/LocalMediaSamples/PolicyRecordingBot. In the ProcessNotificationAsync function, an problem occurs when trying to get request.Properties["MS_OwinContext"]["ssl.ClientCertificateErrors"].

After accessing request.Properties[“MS_OwinContext”][“ssl.ClientCertificateErrors”], GraphLogger outputs the following warning when calling the CommunicationsClient.ProcessNotifications function.

After that, the ParticipantsOnUpdated function of the Sample.PolicyRecordingBot.FrontEnd.Bot.CallHandler class will no longer be called when the number of conference participants exceeds about 20 and more. Therefore, participants are not retrieved.

Code Snippet

try
{
    var sslError = (request.Properties["MS_OwinContext"] as Microsoft.Owin.OwinContext).Environment["ssl.ClientCertificateErrors"];
}
catch (KeyNotFoundException)
{
}

Expected behavior

A large number of participants should be retrieved after accessing request.Properties["MS_OwinContext"]["ssl.ClientCertificateErrors"].

Graph SDK (please complete the following information):

Call ID

2e008480-759d-40c9-a2f0-bb15281d1089

Logs

2024-08-20T18:22:07.1299779Z Warning: NotificationDispatcher.cs:171 ProcessNotification
ScenarioId: 2583c502-ab58-448e-b7f4-77e22b71f946
AppId: 120e1c65-b587-42c8-a49d-6262b586c53d
AppName: Sample.PolicyRecordingBot.FrontEnd
No queue or registered callbacks for
Updated: /communications/calls/2e008480-759d-40c9-a2f0-bb15281d1089

Additional context