Git Product home page Git Product logo

Comments (7)

iliuhin avatar iliuhin commented on May 27, 2024 2

To close the issue:

LUIS can use two type of keys: Authoring Key and Endpoint Key.

  1. So basically the Authoring Key (called also Starter_Key) can be used with authoring Microsoft APIs, such as LUIS Programmatic APIs v2.0.
  2. But when the Endpoint Key (the one generated using Azure), is used with authoring APIs, then the error: "401 error - access denied due to invalid subscription key" is thrown (or in this case, a null object). The Endpoint key is used only when you deal with production endpoint queries.

Link: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-concept-keys

@andreluizsecco Once again, thank you for help. Waiting for upcoming releases.

from cognitive-luis-programmatic.

andreluizsecco avatar andreluizsecco commented on May 27, 2024 1

The _baseUrl of the SDK is correct. It will receive the "/apps" only when accessing the features related to apps, which can be seen, for example, in this line of source code: https://github.com/andreluizsecco/Cognitive-LUIS-Programmatic/blob/3e4231665a42661ea9f45af2ad0a0dc374fe9f6c/Cognitive.LUIS.Programmatic/LuisProgClient.cs#L22

I'll need more information to find out the cause.
Could you get a print of the entire screen on the "publish" tab of your app? Delete the keys from the image.
Ex:

image

If you prefer, send me an email ([email protected]) with your subscription key for my testing.

from cognitive-luis-programmatic.

andreluizsecco avatar andreluizsecco commented on May 27, 2024

Hello @iliuhin, this error occour when connection with your subscription fails. Please, check if your location is really WestEurope. For testing, try changing it to WestUS. For example:

var client = new LuisProgClient(SUBSCRIPTION_KEY, Location.WestUS);
var app = client.GetAppByNameAsync("SDKTest").Result;

from cognitive-luis-programmatic.

iliuhin avatar iliuhin commented on May 27, 2024

Hi @andreluizsecco,
I did change the location to WestUS and the problem still remained. (But I'm pretty sure my app is registered in WestEurope).

But i noticed something else, i think there is a problem with the _baseUrl variable:
url

In your case the url is:
https://westeurope.api.cognitive.microsoft.com/luis/api/v2.0

But if to look at Microsoft Documentation the url is the following:
https://westeurope.api.cognitive.microsoft.com/luis/api/v2.0/apps

thenewlink

https://westus.dev.cognitive.microsoft.com/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c2f

from cognitive-luis-programmatic.

iliuhin avatar iliuhin commented on May 27, 2024

@andreluizsecco Thanks a lot for help, for some reason it worked without a problem when i used my Starter_Key.
I find it pretty strange that the other keys that I've generated don't work...

luisapp

Btw, is there a way to retrieve/delete/edit the labeled utterances using Cognitive-LUIS-Programmatic?

from cognitive-luis-programmatic.

andreluizsecco avatar andreluizsecco commented on May 27, 2024

I can not reproduce your problem here.

If you can contact me at [email protected] to test with your subscription key.

These features (retrieve/delete/edit the labeled utterances) are planned for version 1.1 (See the roadmap here : https://github.com/andreluizsecco/Cognitive-LUIS-Programmatic/wiki/roadmap)

from cognitive-luis-programmatic.

HighSoftWare96 avatar HighSoftWare96 commented on May 27, 2024

Same problem here, the solution was very useful, thanks!

from cognitive-luis-programmatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.