Comments (7)
To close the issue:
LUIS can use two type of keys: Authoring Key and Endpoint Key.
- So basically the Authoring Key (called also Starter_Key) can be used with authoring Microsoft APIs, such as LUIS Programmatic APIs v2.0.
- 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.
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:
If you prefer, send me an email ([email protected]) with your subscription key for my testing.
from cognitive-luis-programmatic.
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.
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:
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
from cognitive-luis-programmatic.
@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...
Btw, is there a way to retrieve/delete/edit the labeled utterances using Cognitive-LUIS-Programmatic?
from cognitive-luis-programmatic.
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.
Same problem here, the solution was very useful, thanks!
from cognitive-luis-programmatic.
Related Issues (20)
- Base URL is hardcoded and useless to Europe/Australia
- [Question] Retrieving an Intent HOT 2
- [Question] Force training and publish HOT 4
- Implement "skip" and "take" parameters for GetAll methods HOT 3
- Resource to get final status of the training request sent HOT 1
- does GetAllEntitiesAsync work? HOT 4
- Adds a batch of labeled examples to the app HOT 1
- Implement resource to delete example labels HOT 1
- Implement resource to review labeled examples HOT 1
- Rename "Location" enum to "Regions" HOT 1
- Verify if "exception.Error" is null before getting "exception.Error.StatusCode" HOT 9
- IntentService.GetAllIntentsAsync missing pagination HOT 1
- Feature: Support versions endpoint HOT 2
- [Discussion] Changing Namespaces
- [New Feature] Clone version
- [New Feature] Update application settings
- [New Feature] Update publish settings
- Improve unit tests
- Luis price Tier s0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cognitive-luis-programmatic.