Skip to content
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

Need to parse error from bf luis command #1277

Closed
scheyal opened this issue Jul 28, 2021 · 3 comments · Fixed by #1303
Closed

Need to parse error from bf luis command #1277

scheyal opened this issue Jul 28, 2021 · 3 comments · Fixed by #1303
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. P2 Nice to have
Milestone

Comments

@scheyal
Copy link
Contributor

scheyal commented Jul 28, 2021

Getting error from LUIS command but the error structure isn't parsed so I can't tell what's wrong.

version

@microsoft/botframework-cli/4.14.1 win32-x64 node-v14.17.3

command

[BF]c:\workspace\botroot\sdk\Orchestrator\Samples\dotnet\nlp-with-entities>bf luis:build --in CognitiveModels --authoringKey 9b4.... --botName OrchEntitySample --log
Loading files...

c:\workspace\botroot\sdk\Orchestrator\Samples\dotnet\nlp-with-entities\CognitiveModels\HomeAutomation.lu loaded

[WARN] line 61:0 - line 61:7: no utterances found for intent definition: "# None"
c:\workspace\botroot\sdk\Orchestrator\Samples\dotnet\nlp-with-entities\CognitiveModels\Weather.lu loaded

[WARN] line 50:0 - line 50:7: no utterances found for intent definition: "# None"
Handling applications...
Luis build failed: Cannot read property 'error' of undefined

@scheyal scheyal added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jul 28, 2021
@munozemilio munozemilio added this to the R15 milestone Sep 10, 2021
@munozemilio
Copy link
Member

@cosmicshuai is this something you could take a look?

@munozemilio munozemilio added the P2 Nice to have label Sep 20, 2021
@mrivera-ms
Copy link

@munozemilio, @cosmicshuai, can you please update with the latest status?

@cosmicshuai
Copy link
Contributor

I test this in my local env, copying the lu files as described in this issue from Botbuilder-Samples repo.
There is no build error in my case:

C:\Users\shuwan\Github\botframework-cli\packages\luis\bin>run luis:build -i CognitiveModels --authoringKey 8807ef......validKey --botName OrchEntitySample --log
Loading files...

C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\a.lu loaded

[WARN] line 61:0 - line 61:7: no utterances found for intent definition: "# None"
C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\b.lu loaded

[WARN] line 50:0 - line 50:7: no utterances found for intent definition: "# None"
Handling applications...
[WARN]: empty intent(s) # None are filtered when handling luis application
[WARN]: empty intent(s) # None are filtered when handling luis application
C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\b.lu no changes

C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\a.lu no changes

The published application setting:
{
    "b_en_us_lu": {
        "appId": "05b6971d-0764-4afe-aaee-a094180d3d00",
        "version": "0.1",
        "recognizes": [
            "Get Weather Condition",
            "Get Weather Forecast",
            "Location"
        ]
    },
    "a_en_us_lu": {
        "appId": "12e35410-03ad-43bf-a807-d9d7c193b1b5",
        "version": "0.1",
        "recognizes": [
            "ControlDevice",
            "Device",
            "deviceProperty",
            "Room"
        ]
    }
}

I've already added some extra check for the luis build error in this PR
#1214

The next step I did was I closed my Internet connection and run the command. I got the undefined error:

C:\Users\shuwan\Github\botframework-cli\packages\luis\bin>run luis:build -i CognitiveModels --authoringKey 8807efe4....validKey --botName OrchEntitySample --log    
Loading files...

C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\a.lu loaded

[WARN] line 61:0 - line 61:7: no utterances found for intent definition: "# None"
C:\Users\shuwan\Github\botframework-cli\packages\luis\bin\CognitiveModels\b.lu loaded

[WARN] line 50:0 - line 50:7: no utterances found for intent definition: "# None"
Handling applications...
Luis build failed: Cannot read property 'error' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. P2 Nice to have
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants