Microsoft Bot(网络聊天频道):500内部服务器错误:发送消息失败 [英] Microsoft Bot (webchat channel): 500 Internal Server error: failed to send message

查看:123
本文介绍了Microsoft Bot(网络聊天频道):500内部服务器错误:发送消息失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已通过网络聊天频道将Bot嵌入网页中,如果Bot闲置10分钟左右 idle ,然后又提出了问题,则Bot不会对此做出回应,但是,当再次问相同的问题时,它会按预期方式响应.

We have embedded a Bot on a web page through the web chat channel, if the Bot is idle for 10 minutes or so and then a question is asked, the Bot does not respond to it, however when the same question is asked again immediately it responds as expected.

在调查网络捕获时,我们观察到在首次询问该问题为500:内部服务器错误时收到的响应,消息为无法发送消息"

On investigating the network capture, we observed the response received when the question was asked for the first time was 500: Internal Server Error with message as "failed to send message"

推荐答案

您是否在Azure中运行机器人?如果是这样,请确保已启用"AlwaysOn";否则,如果网络应用闲置了一段时间,则该网络应用将被卸载.检查,以解决类似的问题.

Are you running the bot in Azure? If so, make sure you have "AlwaysOn" enabled; otherwise the web app will be unloaded if it's idle for a period of time. Check this for a similar problem.

始终在线.默认情况下,如果Web应用程序闲置了一段时间,则会将其卸载.这样可以节省系统资源.在基本"或标准"模式下,您可以启用始终开启"以始终保持应用程序加载.如果您的应用程序连续运行Web作业,则应启用Always On,否则Web作业可能无法可靠运行.

Always On. By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time. If your app runs continuous web jobs, you should enable Always On, or the web jobs may not run reliably.

您可以在此处.

这篇关于Microsoft Bot(网络聊天频道):500内部服务器错误:发送消息失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆