SingleTenant Bot in teams "Microsoft.Bot.Schema.ErrorResponseException:“Operation returned an invalid status code 'Unauthorized'”"

Jay Jiang (Medalsoft) 0 Reputation points
2023-03-20T09:32:50.9466667+00:00

how to fix "Microsoft.Bot.Schema.ErrorResponseException:“Operation returned an invalid status code 'Unauthorized'”",this project is SingleTenant Bot in teams.Can't use single tenant bot in the teams? But using multiTenant mode in a development environment is correct.Please help me >.<

User's image

User's image

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.
3,395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChetanSharmamsft 1,031 Reputation points Microsoft Vendor
    2023-05-30T05:16:22.1166667+00:00

    Hello @Jay Jiang (Medalsoft) - This error is generally coming when we try to send invalid data in Response.

    Reference doc:
    https://learn.microsoft.com/en-us/dotnet/api/microsoft.bot.schema.errorresponseexception?view=botbuilder-dotnet-stable

    Could you please re-verify your response data once?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.