Not able to send reply with echobot example

Lars Migula 0 Reputation points
2024-04-18T07:21:57.5833333+00:00

When testing the echobot example through ngrok I always get the error "Authorization has been denied for this request."

My code is based on this example https://github.com/microsoft/BotBuilder-Samples/blob/main/samples/typescript_nodejs/02.echo-bot/README.md and as far as I can see my .env file is as expected.

Are there any suggestions what I might be missing. My administrator pushlised the App as an OrganizationApp and the incoming message gets to my machine.
If I use the MicrosoftAppId and MicrosoftAppPassword I can obtain an oauth2 Token through https://login.microsoftonline.com/df31a413-af2e-4253-bee9-b44724cf9777/oauth2/v2.0/token
Using this token I get the same error when using the url https://smba.trafficmanager.net/de/v3/conversations/${conversationid}/activities/${activityid}

Also I tried to add the ngrok domain as a trusted url in the App configuration.

MicrosoftAppType=SingleTenant
MicrosoftAppId=2701ebb5-f88c-4048-bf30-2c49aad6ff38
MicrosoftAppPassword=XXXXX~XXXXX~TXwZBgPuZmZVY4z3qrXXXXXXXXX
MicrosoftAppTenantId=df31a413-af2e-4253-bee9-b44724cf9777
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,856 questions
{count} votes