Getting onTurnError using the sample teams bot auth from github

Occasional Contributor

Hi, I've been trying to make the sample bot authentication app provided in the following github repo work:

BotBuilder-Samples/samples/javascript_nodejs/46.teams-auth at main · microsoft/BotBuilder-Samples · ...


I have followed all the steps indicated but I just can't make it work properly. I have been getting an onTurnError every time I try to send a message to the bot. Here's the error in the terminal:


Here's what the bot sends me in in teams chat when I receive this error:



I assume that if this works properly and I type anything, it should show the prompt to sign in but it never does.

The logout dialog seems to work when i send "logout" though.



I am running this with ngrok and have put the ngrok url in the messaging endpoint of my bot like this:


I run this command in ngrok: ngrok http -host-header=rewrite 3978

Please help. I'm not sure what to do anymore.


5 Replies
We are checking this at our end, we will setup the sample locally and get back to you.
Hi, any updates on this? thank you
@puri18 - We have tested this sample. Before adding OAuth Connection Settings we also got onTurnError. But after adding OAuth Connection Settings it was working fine at our end.
Could you please add OAuth Connection Settings and check again.
@puri18 - Could you please confirm if the above suggestion helped you in any way or are you still facing the issue?
Hi, yes it worked when I added the OAuth connection settings. Thanks for your help!