BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Error occurs when publish luis

Open Danieladu opened this issue 7 years ago • 6 comments

Version

source code 7 Oct

Describe the bug

publish luis errors

To Reproduce

I create a lu file and click the 'startbot' button in the upper right corner, and asked to fill in the 'athuoring key'.

Firstly, from the reference here, authoring key, goto luis setting page, I found this: image

The only key in this page is the Primary Key of Starter_key. Then I fill in this one. But error appears, Composer shows this message: 'Error publishing to LUIS.', then I goto the debug console line and get the message code:

"code":"401","message": "The apps - Get applications list Operation under LUIS Programmatic APIs v2.0 API is not supported with the current subscription key and pricing tier LUIS.F0.",

So I do not know If I should update my luis pricing tier to get the access permission.

After, I get into Azure portal to create a luis cognitive service (S0), and find that there are two resources have been created, one is the name of my luis, the other one is 'luisname-Authoring'.

Firstly, I use the luis resource key, same as before, '401' is the result. Then I try the second one, errors as before: code: 'BadArgument', message: 'Import operation has failed.' ,

and the request body is

'{"name":"empty(composer)-Main.en-us.lu","versionId":"0000000001","desc":"Model for empty app, targetting composer for Main.lu file","culture":"en-us","intents":[{"name":"greeting"}],"entities":[],"closedLists":[],"composites":[],"patternAnyEntities":[],"regex_entities":[],"prebuiltEntities":[],"regex_features":[],"model_features":[],"patterns":[],"utterances":[{"text":"hi","intent":"greeting","entities":[]},{"text":"hello","intent":"greeting","entities":[]}]}'

So, what is the right step to solve this issue. Thanks.

Expected behavior

Publish luis successfully

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Danieladu avatar Oct 07 '19 02:10 Danieladu

Reproduced the issue image

And nothing generated under generated directory.

hibrenda avatar Oct 07 '19 13:10 hibrenda

Same thing here.

image

image

zxyanliu avatar Oct 07 '19 18:10 zxyanliu

I have the same issue with the master branch image

It does seem to create the LUIS model, but it is empty as you can see below: image

image

Here is a screen shot of my LUIS inside of Composer: image

image

Dewain27 avatar Oct 07 '19 19:10 Dewain27

Hi All, I checked this Issue in our master code and found the root cause was update luis model fail. According to code in npm package lubuild which we used to handle luis publish, when we publish Luis files, it include 4 steps.

  1. create luis application if it's not existed. notice it has no content.
  2. update luis model, it include running ludown on luis files then create new version model, import new version model, train new version model.
  3. publish new model.

And this issue is occured in import new version model in step2. It probably because our dependent package luis-apis had some changes and needed to be updated or the luis file is not correct. you can test in this page. I use the luis file as above will response the same problem. image

VanyLaw avatar Oct 08 '19 08:10 VanyLaw

Hi @lei9444 , I remember you're the author of this package, can you help to check this issue?

VanyLaw avatar Oct 08 '19 09:10 VanyLaw

This is a luis service issue. No known changes needed on our end.

cwhitten avatar Oct 09 '19 13:10 cwhitten