Feb 21 2022 05:10 PM - edited Feb 21 2022 05:10 PM
I am trying to test my Teams Bot in Teams application. I validated and added bot to my team. Look like I need an Azure app service to run the, so I deployed the app to Azure. But the bot in teams, nor 'Test in Webchat' in Azure bot doesn't work. I followed probably all guides, including troubleshooting and in the Azure Bot resource I can see:
There was an error sending this message to your bot: HTTP status code Unauthorized
In App service Log Stream I could see:
Module AspNetCoreModuleV2 |
Notification ExecuteRequestHandler |
Handler aspNetCore |
Error Code 0x00000000 |
Requested URL https://GraphInterfaceService:80/api/messages |
Physical Path C:\home\site\wwwroot\api\messages |
Logon Method Anonymous |
Logon User Anonymous |
error: {
code: "ServiceError",
message: "Missing required query string parameter: code. Url = https://token.botframework.com/.auth/web/redirect?error=invalid_client&error_description=AADSTS650053%3a+The+application+%27GraphInterfaceAuthentication%27+asked+for+scope+%27Chat.ReadWrite.All%27+that+doesn%27t+exist+on+the+resource+%2700000003-0000-0000-c000-000000000000%27.+Contact+the+app+vendor.%0d%0aTrace+ID%3a+8ecdfbf8-1416-4c68-a28a-66848abad800%0d%0aCorrelation+ID%3a+7f0cd7a4-0a36-4058-a286-57aa20a4059b%0d%0aTimestamp%3a+2022-02-22+00%3a58%3a16Z&state=377673302917459099fe22675ac76be5"
}