Search code examples
node.jsbotframeworkmicrosoft-teams

I get an error [OnTurnError]:Unknown Error on SendActivity of bot


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");


Solution

  • 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.