0
votes

My bot was working fine, but all of a sudden it started failing with the following error :Operation returned an invalid status code ‘Forbidden’

Any idea what's going on. few days back I noticed some email notifications stating " You are approaching the quota limit on you subscription to the LUIS API - Free product. This quota will be renewed on 09/26/2019. "

Is this error has anything to do with my quota limit on my subscription to the LUIS API ?How can I upgrade ?

Operation returned an invalid status codeForbiddenat Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId, String query, Nullable1 timezoneOffset, Nullable1 verbose, Nullable1 staging, Nullable1 spellCheck, String bingSpellCheckSubscriptionKey, Nullable1 log, Dictionary2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction operations, String appId, String query, Nullable1 timezoneOffset, Nullable1 verbose, Nullable1 staging, Nullable1 spellCheck, String bingSpellCheckSubscriptionKey, Nullable1 log, CancellationToken cancellationToken) at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer.RecognizeInternalAsync(ITurnContext turnContext, Dictionary2 telemetryProperties, Dictionary2 telemetryMetrics, CancellationToken cancellationToken) at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer.RecognizeAsync[T](ITurnContext turnContext, CancellationToken cancellationToken)

Update

I upgraded my luis app to standard tier. But still I am facing the same error

2
Entirely related to your quota limit.tdurnford

2 Answers

2
votes

Based on the exception info, your LUIS API service tier is a free one and it has reached quota limitation which caused the 403 forbidden error.For details about LUIS API pricing you can see here .

enter image description here

If you want to grade your LUIS API service tier , go to Azure portal and select your LUIS service click "pricing tier" to upgrade it : enter image description here

1
votes

Just upgrading to standard tier will not resolve this error.

Here is how I got that resolved

--> upgraded LUIS app to standard tier
--> regenerated the primary Key, updated in key vault 
--> Go to Luis.AI >>application settings>>Azure resources >>"Add prediction resource" ,

        pricing tier should show as "standard" and the your expected Region
-> publish your luis app

After this "unauthorized" error is gone