MS Teams Bot - 错误 - 无法获取客户端凭据的令牌

问题描述 投票:0回答:0

我创建了 MS Teams 机器人,它向用户发送主动消息。我正在使用 ConnectorClient 发送消息。我已经实施了错误电子邮件,因此每当出现错误时,我都会收到包含错误详细信息的电子邮件。 最近几天,我为少数用户收到此错误。

无法获取客户端凭据的令牌。 (抛出“Microsoft.Bot.Connector.Authentication.ThrottleException”类型的异常。)

以下是我收到的邮件内容

无法获取客户端凭据的令牌。 (抛出类型为“Microsoft.Bot.Connector.Authentication.ThrottleException”的异常。)(抛出类型为“Microsoft.Bot.Connector.Authentication.ThrottleException”的异常。)(抛出类型为“Microsoft.Bot.Connector.Authentication”的异常.ThrottleException' 被抛出。)(抛出类型为“Microsoft.Bot.Connector.Authentication.ThrottleException”的异常。)(抛出类型为“Microsoft.Bot.Connector.Authentication.ThrottleException”的异常。)(异常类型为“抛出了 Microsoft.Bot.Connector.Authentication.ThrottleException。)(抛出了“Microsoft.Bot.Connector.Authentication.ThrottleException”类型的异常。)(抛出了“Microsoft.Bot.Connector.Authentication.ThrottleException”类型的异常.)(抛出“Microsoft.Bot.Connector.Authentication.ThrottleException”类型的异常。)(抛出“Microsoft.Bot.Connector.Authentication.ThrottleException”类型的异常。)(抛出“Microsoft.Bot.Connector”类型的异常.Authentication.ThrottleException' 被抛出。) StackTrace:在 Microsoft.Bot.Connector.Authentication.Retry.Run[TResult](Func

1 task, Func
3 retryExceptionHandler) 在 Microsoft.Bot.Connector.Authentication.AdalAuthenticator.GetTokenAsync(Boolean forceRefresh) 在 Microsoft.Bot.Connector.Authentication。 AdalAuthenticator.Microsoft.Bot.Connector.Authentication.IAuthenticator.GetTokenAsync(布尔力刷新)在 Microsoft.Bot.Connector.Authentication.AppCredentials.GetTokenAsync(布尔力刷新)在 Microsoft.Bot.Connector.Authentication.AppCredentials.ProcessHttpRequestAsync(HttpRequestMessage 请求,CancellationToken cancellationToken) at Microsoft.Bot.Connector.Conversations.CreateConversationWithHttpMessagesAsync(ConversationParameters parameters, Dictionary`2 customHeaders, CancellationToken cancellationToken) at Microsoft.Bot.Connector.ConversationsExtensions.CreateConversationAsync(IConversations operations, ConversationParameters parameters, CancellationToken cancellationToken) at Microsoft.BotBuilderSamples.WelcomeBotCloundStorage .sendMessage(ConnectorClient connectorClient, UserDetails user, Activity personalMessageActivity)

azure bots botframework microsoft-teams
© www.soinside.com 2019 - 2024. All rights reserved.