获取Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException:操作返回了无效的状态码“ Forbidden”

时间:2019-09-09 10:17:45

标签: azure botframework luis

我有一个在Bot Framework-Dispatch上运行的Bot,并利用了LUIS和QnA的NLP服务。我的机器人在Bot Emulator上运行良好,突然我收到此错误-

  

Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException:操作返回了无效的状态码“禁止”

     Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId,String query,Nullable1 timezoneOffset,Nullable1 verbose,Nullable1阶段,Nullable1 spellCheck,字符串bingSpellCheckSubscriptionKey,Nullable1日志,Dictionary2中的

     

at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction操作,字符串appId,字符串查询,Nullable1 timezoneOffset,Nullable1冗长,Nullable1登台,Nullable1拼写检查,字符串bingSpellCheckSubscriptionKey,Nullable` cancelToken)

     

at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer.RecognizeInternalAsync(ITurnContext turnContext,LuisPredictionOptions projectionOptions,Dictionary2 telemetryProperties,Dictionary2 telemetryMetrics,CancellationToken cancelingToken)in d:\ a \ 1 \ s \ libraries \ Microsoft.Bot.Builder .AI.LUIS \ LuisRecognizer.cs:第345行

     

在d:\ a \ 1 \ s \ libraries \ Microsoft.Bot.Builder.AI.LUIS \ LuisRecognizer.cs中的Microsoft.Bot.Builder.AI.Luis.LuisRecognizer.RecognizeAsync(ITurnContext turnContext,CancellationToken cancelleToken)中:第145行

     在Microsoft.BotBuilderSamples.DispatchBot.OnMessageActivityAsync(ITurnContext`1 turnContext,CancellationToken cancelleToken)中的

在F:\ nikhil \ Alfi \ mts-qna + luis \ Bots \ DispatchBot.cs:line 207

     

在d:\ a \ 1 \ s \ libraries \ Microsoft.Bot.Builder \ BotFrameworkAdapter.cs:第995 <<中的Microsoft.Bot.Builder.BotFrameworkAdapter.TenantIdWorkaroundForTeamsMiddleware.OnTurnAsync(ITurnContext turnContext,NextDelegate next,CancellationToken cancellingToken)中/ p>      

在d:\ a \ 1 \ s \ libraries \ Microsoft.Bot.Builder \ MiddlewareSet.cs:line 55      

在d:\ a \ 1 \ s \ libraries \ Microsoft.Bot.Builder \ BotAdapter.cs:line 167

有时候Luis开始回应,但我经常收到这个回应。

0 个答案:

没有答案