Forum Discussion

JessicaLu85's avatar
JessicaLu85
Copper Contributor
Apr 06, 2022

Not able to interact with calling meeting bot and receive "502 Bad Gateway" error

I downloaded samples from https://github.com/OfficeDev/Microsoft-Teams-Samples.git

For bot-calling-meeting c# sample, I registered a new bot with https://dev.botframework.com/bots/ according to https://docs.microsoft.com/en-us/microsoftteams/platform/bots/calls-and-meetings/registering-calling-bot

I modified appsettings.json and manifest.json, then debug in Visual Studio with "Your bot is ready!"

then I test with web teams of the bot, I cannot interact with the calling-meeting bot and I can see "There was an error sending this message to your bot: HTTP status code BadGateway"

 

also I'm reading the step-by-step guide from https://docs.microsoft.com/en-us/microsoftteams/platform/sbs-calling-and-meeting?tutorial-step=1, I cannot interact with the calling-meeting bot either. no welcomeText with Adaptive Card and when clicking video/audio call button I will receive "you can't talk to the bot just yet"

I can see 

"POST /api/messages 502 Bad Gateway

 POST /api/callback 502 Bad Gateway " from the console

 

Could anybody tell me what's my problem and how to resolve this? Thanks

 

 

7 Replies

  • JessicaLu85 -Check if you had created policy for that tenant user.

    Please make sure you have enabled calling and configured proper endpoint on Teams channel page. 

     

    • JessicaLu85's avatar
      JessicaLu85
      Copper Contributor

      Hi Sayali-MSFT , thanks for your reply!

      you mentioned "Check if you had created policy for that tenant user"--Could I know what kind of policy, actually I have no extra policy set for the tenant user during configure the bot except the online meeting policy mentioned in https://docs.microsoft.com/en-us/microsoftteams/platform/sbs-calling-and-meeting?tutorial-step=2

      I have configured webhook for calling as below picture:

      • Sayali-MSFT's avatar
        Sayali-MSFT
        Icon for Microsoft rankMicrosoft

        JessicaLu85 -Could you please try in webhook url instead of /api/callback use /callback as mention in my screenshots.

Resources