Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 bot with Ms teams channel gives 400 , 502 errors #4860

Closed
rjgmail88 opened this issue Jul 15, 2018 · 10 comments
Closed

V3 bot with Ms teams channel gives 400 , 502 errors #4860

rjgmail88 opened this issue Jul 15, 2018 · 10 comments
Assignees

Comments

@rjgmail88
Copy link

Bot Info

  • SDK Platform: Node.js \
  • SDK Version: 3
  • Active Channels: MS Teams, Cortana
  • Deployment Environment: Azure App Service

Issue Description

I have V3 BOT with Microsoft teams channel. I see following sporadic issue where it seems like teams is failing send response back to bot via serviceURL

There is 2 intermittent errors 502 bad gateway and 400. I have posting this to ms teams repo but, there is almost no response.

OfficeDev/BotBuilder-MicrosoftTeams#124

Code Example

Just added ms team channel on the bot service and using following TeamsChatConnector.

`
var teams = require("botbuilder-teams");

var connector = new teams.TeamsChatConnector({
appId: process.env.MICROSOFT_APP_ID,
appPassword: process.env.MICROSOFT_APP_PASSWORD
});
`

Reproduction Steps

Issue happens in the middle of the conversation at anytime. The message (output) from bot service is just dropped or never sent back to the user when 502 / 400 occurs. Full stack trace could be found on above issue link.

Expected Behavior

The output my bot services is generating should be sent back to user by ms teams channel and no errors in the logs.

@jwiley84 jwiley84 self-assigned this Jul 16, 2018
@rjgmail88
Copy link
Author

This is what app insights shows. I see lots of 502 and 404.

image

@jwiley84
Copy link

Hi RJ! Just wanted to let you know I am looking into this!

@rjgmail88
Copy link
Author

Thanks. I had been posting details on this issue OfficeDev/BotBuilder-MicrosoftTeams#124

@jwiley84
Copy link

Hi RJ. So far I'm not able to track down what's going on with your bot. Can you post your github link to this bot for me so I can see if it's something in the code?

@rjgmail88
Copy link
Author

@jwiley84 , I actually copy pasted this code and using it
https://github.com/Microsoft/BotBuilder/blob/master/Node/examples/basics-oauth/app.js

@jwiley84
Copy link

Alright, let me see what I can do.

@jwiley84
Copy link

jwiley84 commented Aug 3, 2018

RJ: Apologies! I haven't forgotten you! I'm still investigating.

@rjgmail88
Copy link
Author

Sure, thanks for the update.

@jwiley84
Copy link

jwiley84 commented Aug 7, 2018

Hi RJ. Again, sorry for not getting back to you soon. I'm trying to recreate your issue and have reached out to some coworkers for assistance.
You posted an image of your app insights with the 401 and 502s to smba.trafficmanager.net, do you have any where the POST requests went through just fine and you got a 200 or 202? We'd like to see the Remote dependency name of a successful POST request to that event.

@jwiley84
Copy link

Closing for lack of response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants