Detect if bot is not sedding messages.
Heya guys, I was looking into the docs, and honestly did not see somehting that help me to track whether the bot is sending message or not. The problem is that is I send a message and an error happend or botframework service is dowm I can´t send any message to the user, I was looking for something like a middleware or some.
Any Help?
Thanks, Wilfredo.
Probably the cleanest way to do this would be to set up alerts tied to instrumentation. Maybe if you used something like Azure Application Insights (which is free at low to moderate levels of traffic) you'd be able to set up an alert when http requests drop below a certain level.
If you're not using Azure there are similar analytics/monitoring packages in the marketplace.
@jameslew Thanks for your response, Unfournately I am not using Azure for hosting but the approach would be the same and I was thinking about, but my problem is if my bot app is up but Microsoft bot framework (M.B.F) has any problem how do I detect it and notify the user? Some days ago one bot mine stopped working and I don't know why, this bot was in production for 2 weeks working very good, and the problem was that something happend with M.B.F and I could not detect what happened exacly.
I could see the logs inside the M.B.F and show me the error, but in my app nothing happend, the most near error that I got some times is "Oops. Something went wrong and we need to start over" and it's when I broken something inside a dialog or intents.
My last resort will be check the bot Framework endpoint is alive.
Thanks.
Hi @FreakDroid, there are three places where an error could occur.
-
We could have a problem contacting your bot. We have App Insights and the error log in the Bot Framework dashboard to help track this.
-
Your bot could accept the message but have an internal error. To the extent that the SDK can help detect these errors, it should. The SDK has improved in this regard since you opened the issue.
-
Your bot generated a message but could not send it to the channel. We'll try to report these failures back to you but in certain cases (such as a connectivity issue), we're unable to understand and track the error, so your monitoring would be in the best position to detect these errors.
I'm going to close this issue now. If you have issues or suggestions, in particular related to item 2, please open a new issue or at-mention anyone on this thread. Thanks!