Forum Discussion
AudioVideoPlaybackBot not joining meeting - Server Internal Error. DiagCode: 500#3002.@
rubenrubio - Thanks for reporting your issue. The error may be related to server-side issues such as problems with the server configuration or unexpected conditions that the server cannot handle
1. Ensure that your ngrok tunnel is correctly configured to handle TCP traffic for the AudioVideoPlaybackBot. Since the bot requires TCP tunnels for calls and online meetings, you need to set up ngrok to support TCP tunnels.
2. Since you are using a wildcard SSL certificate for *.biometricvox.com, ensure that the certificate is correctly installed on your machine and matches the ngrok tunnel's public URL. The SSL certificate must be valid and match the bot's public URL to establish secure communication.
3. Verify that the messaging endpoint URL in your bot registration is correctly set to https://bot.biometricvox.com/api/messages. This endpoint should match the ngrok tunnel's URL where your bot is hosted. Ensure that the bot registration settings are configured correctly for multi-tenant access.
4. The error code 500 with subcode 3002 indicates an internal server error during the call establishment process. This could be due to issues with the bot's communication with Microsoft Graph API. Ensure that the bot has the necessary permissions and configurations to interact with Microsoft Graph API for calls and meetings.
- Nivedipa-MSFTJun 11, 2024
Microsoft
rubenrubio - have you verified the above checkpoints?- rubenrubioJun 12, 2024Copper Contributor
Hello, Nivedipa-MSFT. Thank you for your response and sorry for my delay.
I've checked all the items, but I get the same error. Here are my notes:
1.- My ngrok config file seems OK:
authtoken: AUTH_TOKEN tunnels: signaling: addr: 9442 proto: tls hostname: bot.biometricvox.com key: C:\path\to\certificate\private.key crt: C:\path\to\certificate\public.crt media: addr: 8445 proto: tcpNgrok tunnels all communications from bot.biometricvox to my private port 9442, where AudioVideoPlaybackBot responds. The logs suggest that there is signaling communication between my bot and the public Microsoft Graph infraestructure, since I am getting the 500 server error from Microsoft Graph to my webhook https://bot.biometricvox.com/api/calling,
When I launch ngrok I get this output:
ngrok by @@inconshreveable (Ctrl+C to quit) Session
Status online
Account XXX XXX (Plan: Pro)
Version 2.3.41
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding tcp://0.tcp.ngrok.io:19853 -> localhost:8445
Forwarding tls://bot.biometricvox.com -> localhost:9442
I've got CNAME DNS registries from bot.biometricvox.com to our ngrok domain, and from 0.bot.biometricvox.com to 0.tcp.ngrok.io. I have put 19853 as my public port in AzureConfiguration.cs file, and 0.bot.biometricvox.com as public FQDN for media.
2.- The wildcard is installed in the machine, and matches the certificate used in ngrok configuration file. If I modify the thumbprint in the AudioVideoPlaybackBot source code I get an exception, so it suggest it's working.
3.- The endpoint of the bot channel MS Teams registration webhook is https://bot.biometricvox.com/api/calling, since AudioVideoPlaybackBot does not appear to have any endpoint like /api/messages. Changing the bot registration to /api/messages did not change the 500#3002 error.
4.- I gave all Calls.* permissions to the bot, and the tenant administrator accepted them in our tenant.
Once again, thank you very much for your time. I'm struggling a little bit to get the samle bot working since there is so much configuration to do, and the error message is not very descriptive 🙂
- Nivedipa-MSFTJun 13, 2024
Microsoft
rubenrubio - Could you please share your repro video to investigate further?