-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nodejs][12.nlp-with-luis] Authorization error #947
Comments
There are two issues called out in this Issue.: one of the issues pertains to LUIS creds, the other issue is why the onTurnError handler is firing with a TypeError. I submitted PR #948 to add some additional clarity to the sample's README, specifically pertaining to LUIS setup. That said, I am able to create a LUIS app, import the language file (.json), train and publish the model, and use the key and region data found on the Luis.ai For the second issue, the TypeError, there is a temporary workaround that will fix the TypeError. Perform the following commands from a shell console: $ cd 12.nlp-with-luis
$ npm install
$ npm uninstall ms-rest-js ms-rest-azure-js
$ npm i [email protected] [email protected] The TypeError is a result of a breaking change introduced by a dependent component we us in the SDK. We''ve logged an issue against that team to fix there breaking change. That can be tracked here: The PR microsoft/botbuilder-js#644 will address the issue in the SDK, until the above Issue is resolved. We will publish new SDK bits that will lock to a previous (unbroken) version of that dependency. ETA for that is tracking to Monday of this coming week. @rsweetland, I'm adding the support team to the issue. They can help you further if my above data doesn't fully get you up and running |
Solved! Thanks for answering and pushing a fix so quickly. The additional steps added to the readme (train + publish on luis.ai) were my missing steps. It would be nice if Luis's error message suggested that. For example:
I also tested with an invalid key and confirmed the type error is not happening. |
Thanks for the feedback on the improved error message. We're not able to provide a better error message as there isn't an api we can use to detect the scenario. |
Describe the bug
Following readme instructions (including double-verifying all credentials) still results in authorization errors.
Possibly related, the below line in the readme conflicts with the page it links to, which shows both authoringKey and subscriptionKey. I tried all combinations without result.
Resulting config:
To Reproduce
Steps to reproduce the behavior:
npm start
And this error in the emulator:
Additional context
nlp-with-luis
version from package.json is1.0.0
I'm running Node v8.9.1
[bug]
The text was updated successfully, but these errors were encountered: