问题
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.
Code failing -
await stepContext.context.sendActivity({
type: 'typing'
});
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");
回答1:
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.
When the issue is resolved, it should be posted in the Github issue above.
回答2:
Thanks @Mick. @Sree - This is related to the recent outage happened in Europe region. My team has already raised the ticket for this.
来源:https://stackoverflow.com/questions/60768474/i-get-an-error-onturnerrorunknown-error-on-sendactivity-of-bot