LUIS recognizer method stopped working (Code hasn't been changed)LUIS Pre Built Entity are not recognized in the utteranceLUIS incorrectly recognizes utterancesto recognize name of person with prebuilt entities in luisLUIS not recognizing word partsTrack if LUIS intent has already been triggeredCommunication.ContactName Entity not recognized in LUIS IntentDisable / re-enable LUIS recognizer prior to entering waterfall dialogRetrieve complete LUIS DateTimeV2 entity from recognizerHow do I send chat transcript? SendConversationHistoryAsync() not workingLUIS Operation returned an invalid status code 'Unauthorized' BotFramework v4

OP Amp not amplifying audio signal

Is this draw by repetition?

Different meanings of こわい

How badly should I try to prevent a user from XSSing themselves?

What is required to make GPS signals available indoors?

In Bayesian inference, why are some terms dropped from the posterior predictive?

Is it "common practice in Fourier transform spectroscopy to multiply the measured interferogram by an apodizing function"? If so, why?

How obscure is the use of 令 in 令和?

How can saying a song's name be a copyright violation?

Send out email when Apex Queueable fails and test it

How to coordinate airplane tickets?

What is the most common color to indicate the input-field is disabled?

Were days ever written as ordinal numbers when writing day-month-year?

Bullying boss launched a smear campaign and made me unemployable

How seriously should I take size and weight limits of hand luggage?

How to prevent "they're falling in love" trope

Can someone clarify Hamming's notion of important problems in relation to modern academia?

Rotate ASCII Art by 45 Degrees

files created then deleted at every second in tmp directory

Pact of Blade Warlock with Dancing Blade

What is the opposite of "eschatology"?

How to show a landlord what we have in savings?

Why were 5.25" floppy drives cheaper than 8"?

How can I prove that a state of equilibrium is unstable?



LUIS recognizer method stopped working (Code hasn't been changed)


LUIS Pre Built Entity are not recognized in the utteranceLUIS incorrectly recognizes utterancesto recognize name of person with prebuilt entities in luisLUIS not recognizing word partsTrack if LUIS intent has already been triggeredCommunication.ContactName Entity not recognized in LUIS IntentDisable / re-enable LUIS recognizer prior to entering waterfall dialogRetrieve complete LUIS DateTimeV2 entity from recognizerHow do I send chat transcript? SendConversationHistoryAsync() not workingLUIS Operation returned an invalid status code 'Unauthorized' BotFramework v4













1















I didn't change any of my code and the method throws an LUIS.Runtime.Models.APIErrorException



_services.LuisServices[LuisConfiguration].RecognizeAsync(turnContext, cancellationToken);


I tried to use a different LUIS model and an old version of my bot that definately worked. It seems like something was changed in the BotBuilder and I can't figure out what. This is the stacktrace:



 Exception caught : Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging, Nullable`1 spellCheck, String bingSpellCheckSubscriptionKey,
Nullable`1 log, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction operations, String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging,
Nullable`1 spellCheck,
String bingSpellCheckSubscriptionKey, Nullable`1 log, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeInternalAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 421
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 112
at NLPMortBot.BasicBot.OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken) in nlpmortbotNLPMortBotBasicBot.cs:line 121
at Microsoft.Bot.Builder.MiddlewareSet.ReceiveActivityWithStatusAsync(ITurnContext turnContext, BotCallbackHandler callback,


CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderMiddlewareSet.cs:line 55
at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback,
CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderBotAdapter.cs:line 167



Thanks in advance guys !










share|improve this question



















  • 2





    Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

    – Eric Dahlvang
    Mar 8 at 21:38











  • Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

    – sala96
    Mar 9 at 11:41






  • 1





    Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

    – Ferdinand Fejskid
    Mar 11 at 9:15















1















I didn't change any of my code and the method throws an LUIS.Runtime.Models.APIErrorException



_services.LuisServices[LuisConfiguration].RecognizeAsync(turnContext, cancellationToken);


I tried to use a different LUIS model and an old version of my bot that definately worked. It seems like something was changed in the BotBuilder and I can't figure out what. This is the stacktrace:



 Exception caught : Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging, Nullable`1 spellCheck, String bingSpellCheckSubscriptionKey,
Nullable`1 log, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction operations, String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging,
Nullable`1 spellCheck,
String bingSpellCheckSubscriptionKey, Nullable`1 log, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeInternalAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 421
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 112
at NLPMortBot.BasicBot.OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken) in nlpmortbotNLPMortBotBasicBot.cs:line 121
at Microsoft.Bot.Builder.MiddlewareSet.ReceiveActivityWithStatusAsync(ITurnContext turnContext, BotCallbackHandler callback,


CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderMiddlewareSet.cs:line 55
at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback,
CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderBotAdapter.cs:line 167



Thanks in advance guys !










share|improve this question



















  • 2





    Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

    – Eric Dahlvang
    Mar 8 at 21:38











  • Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

    – sala96
    Mar 9 at 11:41






  • 1





    Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

    – Ferdinand Fejskid
    Mar 11 at 9:15













1












1








1








I didn't change any of my code and the method throws an LUIS.Runtime.Models.APIErrorException



_services.LuisServices[LuisConfiguration].RecognizeAsync(turnContext, cancellationToken);


I tried to use a different LUIS model and an old version of my bot that definately worked. It seems like something was changed in the BotBuilder and I can't figure out what. This is the stacktrace:



 Exception caught : Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging, Nullable`1 spellCheck, String bingSpellCheckSubscriptionKey,
Nullable`1 log, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction operations, String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging,
Nullable`1 spellCheck,
String bingSpellCheckSubscriptionKey, Nullable`1 log, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeInternalAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 421
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 112
at NLPMortBot.BasicBot.OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken) in nlpmortbotNLPMortBotBasicBot.cs:line 121
at Microsoft.Bot.Builder.MiddlewareSet.ReceiveActivityWithStatusAsync(ITurnContext turnContext, BotCallbackHandler callback,


CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderMiddlewareSet.cs:line 55
at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback,
CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderBotAdapter.cs:line 167



Thanks in advance guys !










share|improve this question
















I didn't change any of my code and the method throws an LUIS.Runtime.Models.APIErrorException



_services.LuisServices[LuisConfiguration].RecognizeAsync(turnContext, cancellationToken);


I tried to use a different LUIS model and an old version of my bot that definately worked. It seems like something was changed in the BotBuilder and I can't figure out what. This is the stacktrace:



 Exception caught : Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Models.APIErrorException: Operation returned an invalid status code 'Forbidden'
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.Prediction.ResolveWithHttpMessagesAsync(String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging, Nullable`1 spellCheck, String bingSpellCheckSubscriptionKey,
Nullable`1 log, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime.PredictionExtensions.ResolveAsync(IPrediction operations, String appId, String query,
Nullable`1 timezoneOffset, Nullable`1 verbose,
Nullable`1 staging,
Nullable`1 spellCheck,
String bingSpellCheckSubscriptionKey, Nullable`1 log, CancellationToken cancellationToken)
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeInternalAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 421
at Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
.RecognizeAsync(ITurnContext turnContext, CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.Builder.AI.LUIS
LuisRecognizer.cs:line 112
at NLPMortBot.BasicBot.OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken) in nlpmortbotNLPMortBotBasicBot.cs:line 121
at Microsoft.Bot.Builder.MiddlewareSet.ReceiveActivityWithStatusAsync(ITurnContext turnContext, BotCallbackHandler callback,


CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderMiddlewareSet.cs:line 55
at Microsoft.Bot.Builder.BotAdapter.RunPipelineAsync(ITurnContext turnContext, BotCallbackHandler callback,
CancellationToken cancellationToken) in D:a1slibrariesMicrosoft.Bot.BuilderBotAdapter.cs:line 167



Thanks in advance guys !







c# .net botframework luis






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 at 20:39







sala96

















asked Mar 8 at 20:42









sala96sala96

83




83







  • 2





    Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

    – Eric Dahlvang
    Mar 8 at 21:38











  • Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

    – sala96
    Mar 9 at 11:41






  • 1





    Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

    – Ferdinand Fejskid
    Mar 11 at 9:15












  • 2





    Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

    – Eric Dahlvang
    Mar 8 at 21:38











  • Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

    – sala96
    Mar 9 at 11:41






  • 1





    Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

    – Ferdinand Fejskid
    Mar 11 at 9:15







2




2





Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

– Eric Dahlvang
Mar 8 at 21:38





Are you using the starter key? (the starter key has a low limit) or have you setup a subscription key? docs.microsoft.com/en-us/azure/cognitive-services/luis/…

– Eric Dahlvang
Mar 8 at 21:38













Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

– sala96
Mar 9 at 11:41





Hi. Thank you for your help. It worked. I found it strange as I created a new LUIS model using a different account and it didn't work.

– sala96
Mar 9 at 11:41




1




1





Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

– Ferdinand Fejskid
Mar 11 at 9:15





Could you please edit your question and make the exception more readable and eventually add your findings as your own reply?

– Ferdinand Fejskid
Mar 11 at 9:15












1 Answer
1






active

oldest

votes


















0














This can happen if you are using the Starter Key instead of an actual Subscription Key from an 'endpoint runtime resource in Azure'. More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-azure-subscription



After creating the LUIS Azure Resource Key, it can be assigned within the LUIS Portal:



enter image description here



More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/get-started-portal-deploy-app#assign-the-resource-key-to-the-luis-app-in-the-luis-portal






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070705%2fluis-recognizer-method-stopped-working-code-hasnt-been-changed%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This can happen if you are using the Starter Key instead of an actual Subscription Key from an 'endpoint runtime resource in Azure'. More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-azure-subscription



    After creating the LUIS Azure Resource Key, it can be assigned within the LUIS Portal:



    enter image description here



    More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/get-started-portal-deploy-app#assign-the-resource-key-to-the-luis-app-in-the-luis-portal






    share|improve this answer



























      0














      This can happen if you are using the Starter Key instead of an actual Subscription Key from an 'endpoint runtime resource in Azure'. More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-azure-subscription



      After creating the LUIS Azure Resource Key, it can be assigned within the LUIS Portal:



      enter image description here



      More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/get-started-portal-deploy-app#assign-the-resource-key-to-the-luis-app-in-the-luis-portal






      share|improve this answer

























        0












        0








        0







        This can happen if you are using the Starter Key instead of an actual Subscription Key from an 'endpoint runtime resource in Azure'. More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-azure-subscription



        After creating the LUIS Azure Resource Key, it can be assigned within the LUIS Portal:



        enter image description here



        More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/get-started-portal-deploy-app#assign-the-resource-key-to-the-luis-app-in-the-luis-portal






        share|improve this answer













        This can happen if you are using the Starter Key instead of an actual Subscription Key from an 'endpoint runtime resource in Azure'. More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-azure-subscription



        After creating the LUIS Azure Resource Key, it can be assigned within the LUIS Portal:



        enter image description here



        More information can be found here: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/get-started-portal-deploy-app#assign-the-resource-key-to-the-luis-app-in-the-luis-portal







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 12 at 19:59









        Eric DahlvangEric Dahlvang

        6,73742144




        6,73742144





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070705%2fluis-recognizer-method-stopped-working-code-hasnt-been-changed%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

            List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229