-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Microsoft Teams not displaying the bot reply after some time #1141
Comments
Maybe your ECS instance is idling and timing out? There are a few threads here from users who ran into trouble hosting on Amazon, try searching the issue archive. Maybe you would have better luck hosting it on Glitch |
@peterswimm I found similar issues reported earlier for Slack Bot- #442 #276 So just thinking if we are running into a similar issue in Teams Bot. |
@peterswimm I hosted botkit-starter-teams bot on Glitch. It works fine for few hours and after that I don't get response from bot in Teams. I see
|
Ah yes the timeout question. You should use botkit storage to save your state on a timeout, so it can cleanly resume if a user leaves in the middle of a conversation. We have an article on working with data and studio you might find useful" |
@peterswimm It is an access token issue. The token that bot generate using |
Good detective work @narenderpal - I was about to suggest it was a refresh token issue. |
@narenderpal Care to submit a PR to fix this? @billbliss Hi! |
Hey @narenderpal did you get a PR for this, I'm also seeing the same issue, waaaa!!! If no I can have a crack, I've also got a documentation update I owe BotKit :) I just found this post after getting into the API and coming to the same conclusion. |
@peterswimm setTimeout?, every 50mins? Teams.js
|
To follow up, I fixed this last night, bot stayed up all night which was great, I'll write some test coverage and submit a PR. |
Please do, and link this thread! |
PR fixing the behaviour and a bit of coverage #1230 |
Hi,
I am not sure if this is an issue with botkit per say, but noticing an unexpected behavior while used with Microsoft Teams (With Slack, no such behavior observed).
I have a very basic Teams bot, exactly, as described at https://github.com/howdyai/botkit/blob/master/docs/readme-teams.md. I only added some console.log messages just before the bot replies.
The bot is hosted in AWS as an ECS service. It works fine for about an hour and a half. After that, Teams does not display the messages from the bot. I tried with bot the paid and developer versions of Microsoft Teams.
From the console messages I added, I can see that the bot is replying to the requests from Teams. If I restart the bot, the communication again works for next 1.5 hours.
Any clue on what might be happening?
Thanks!
The text was updated successfully, but these errors were encountered: