microsoftgraph / microsoft-graph-comms-samples

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

MediaAPINotInitialized Error #705

Closed Javeria-Arif closed 8 months ago

Javeria-Arif commented 9 months ago

Hi All,

I have followed all the steps in the PSI Bot service guide to add the PSI bot in my MS Teams call.

Now when I am joining the Teams call as a bot using Teams URL, the code is throwing "MediaAPINotInitialized Error". I am not sure why is this error being thrown? Can anyone guide on this?

image image

InDieTasten commented 8 months ago

You should check the output of the logger. I assume there will be more details for why the media api is not initialized. Also post the full stacktrace.

Javeria-Arif commented 8 months ago

@InDieTasten One more thing that I found out, is when I start the application and run xx.ngrok-free.app/manage the code throws an exception in the BotService.cs class on this line "builder.SetMediaPlatformSettings(botConfiguration.MediaPlatformSettings); ". The error is: image image

Uploading the stack trace for the previous error as well:

image

vigbav36 commented 8 months ago

Hey , instead of using the instructions in read me for generating certificate , use Posh Acme

https://poshac.me/docs/v4/Tutorial/

And then install the certificate in local machine , re run it and it should work

Javeria-Arif commented 8 months ago

Thank you all. I have resolved this particular issue. I created a new RSA certificate which is supported by the media platform.