Shweta Lodha
Shweta Lodha

Reputation: 98

Getting error while using LUIS recognizer

Whenever I'm trying to get response using below code, I'm getting exception 'Response status code does not indicate success: 404 (Not Found).'. Please help me out.

var luisApp = new LuisApplication(configuration["LuisAppId"], configuration["LuisAPIKey"], configuration["LuisAPIHostName"]);
var recognizerResult = await recognizer.RecognizeAsync(turnContext, cancellationToken);

Upvotes: 0

Views: 147

Answers (2)

Sam Vanhoutte
Sam Vanhoutte

Reputation: 3481

One thing that I forgot to apply (while developing the solution), was that the LUIS application has to be deployment to the production slot as well. If that does not happen, you'll get that 404 as well. Just wanted to share, in case others need it.

Upvotes: 1

Yutong Tie
Yutong Tie

Reputation: 498

If you are talking about LUIS recognizer class, I will highly suggest you check properties and anything else according to the document:

PROPERTIES applicationId
Your models application Id from LUIS

endpoint
(Optional) LUIS endpoint with a default of https://westus.api.cognitive.microsoft.com

endpointKey Endpoint key for talking to LUIS

https://learn.microsoft.com/en-us/javascript/api/botbuilder-ai/luisapplication?view=botbuilder-ts-latest

Upvotes: 1

Related Questions