microsoft / BotBuilder-Samples

Welcome to the Bot Framework samples repository. Here you will find task-focused samples in C#, JavaScript/TypeScript, and Python to help you get started with the Bot Framework SDK!
https://github.com/Microsoft/botframework
MIT License
4.35k stars 4.86k forks source link

EchoBot WebEx sample, bot doesn't respond #2749

Closed johnkellyjr closed 3 years ago

johnkellyjr commented 4 years ago

Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Sample information

  1. Sample type: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-adapter-connect-webex?view=azure-bot-service-4.0
  2. Sample language: [c#/Bot Framework]
  3. Sample name: Connect a bot to Webex Teams using the Webex adapter

Describe the bug

After going through the sample the Echobot will not respond from the WebEx client.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://docs.microsoft.com/en-us/azure/bot-service/bot-service-adapter-connect-webex?view=azure-bot-service-4.0'
  2. Follow the example as outlined, make note in Step 4 that 'Messages' and 'Created' need to be 'messages' and 'created' as WebEx defines these webhook attributes as case sensitive. (A bug report was made for this and it looks like it is going to be addressed).
  3. Publish debug version of Echobot to Azure and run debug from Cloud Explorer. Set breakpoints in BotController.cs, EchoBot.cs, and WebexController.cs in each method (OnMessageActivityAsync, etc).
  4. From Azure, test the bot and verify that BotController properly routes EchoBot.cs where turnContext is used. Bot will respond to chat with echo'd message.
  5. Go to the WebEx Teams client, add the bot that was created to a chat, and send a message
  6. Verify that WebexController.cs methods receive the POST Json and nothing is routed to EchoBot.cs. The bot will not respond to the WebEx client as a result.

Expected behavior

The Echobot should work in the WebEx client.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

jwiley84 commented 3 years ago

My apologies for the delay. I'm looking into this now, and should have an answer for you shortly

jwiley84 commented 3 years ago

I was able to test the doc we have for connecting a bot to webex, and ran into no issue. image

Can you explain a bit more about how you're debugging? It's possible that one of your breakpoints is causing the bot to not recieve the message in time and timing out. And please verify if you're using a standard echo sample (sample 02) and editing it, or if you're using the premade webex connector sample (sample 62).

jwiley84 commented 3 years ago

Closing due to inactivity.