我收到错误[OnTurnError]:机器人的SendActivity发生未知错误 [英] I get an error [OnTurnError]:Unknown Error on SendActivity of bot
问题描述
我的机器人已集成到Microsoft团队中,在基于Web应用程序的团队中调用SentActivity后给出了一个错误 但可以在团队的桌面应用程序上正常工作.
My bot integrated into microsoft teams ,gives out an error after SentActivity call in webapp based teams but works fine on Desktop Application of Teams.
代码失败-
await stepContext.context.sendActivity({
type: 'typing'
});
上述逻辑仅适用于基于Web的团队,不适用于桌面应用程序. 知道为什么吗?
The above logic only fails for web based teams and not on Desktop application. Any idea ,why that is?
下面的代码在两种情况下都可以正常工作
Also the code below works perfectly fine in both-
await stepContext.context.sendActivity("Hello There");
推荐答案
您的团队租户是否在西欧地区?不幸的是,这是目前的服务错误,已在Github上的此问题.
Is your Teams tenant within the Western European region? Unfortunately this is a service error at the moment, as confirmed in this issue on Github.
问题解决后,应将其发布在上面的Github问题中.
When the issue is resolved, it should be posted in the Github issue above.
这篇关于我收到错误[OnTurnError]:机器人的SendActivity发生未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!