botframework-solutions icon indicating copy to clipboard operation
botframework-solutions copied to clipboard

Error while running connect/update using botskills CLI

Open manish-95 opened this issue 6 years ago • 14 comments

What happens?

When I try to connect/update a skill to the main VA Bot using botskills connect/update, I get an error which prevents me from proceeding further.

What are the steps to reproduce this issue?

  1. Use bf luis:version:export to generate .json file for the Skill Bot.
  2. Use bf luis:convert to update the .lu file with new changes for the same Skill Bot.
  3. Run botskills update/connect to update the dispatch of the VA bot.

What were you expecting to happen?

The .dispatch and .luis files of the VA Bot to be updated with details of the Skill template.

Can you share any logs, error output, etc.?

Error: The execution of the ludown command failed with the following error: [ERROR] line 989:0 - line 989:1: syntax error: invalid input '@' detected. Expecting one of this - end of file, model description, new line, QnA definition, Intent definition, Entity definition, Import statement [ERROR] line 993:0 - line 993:1: syntax error: invalid input '@' detected. Expecting one of this - end of file, model description, new line, QnA definition, Intent definition, Entity definition, Import statement Stopping further processing.

manish-95 avatar Feb 14 '20 13:02 manish-95

Hi @manish-95, what version of the botskills tool (run botskills -v) are you using?

lauren-mills avatar Feb 14 '20 19:02 lauren-mills

Hi @lauren-mills , I am using version 1.0.13

manish-95 avatar Feb 16 '20 17:02 manish-95

@lauren-mills Any updates on this? I am still facing this issue.

manish-95 avatar Feb 19 '20 04:02 manish-95

what is the version of the VA Template that you created your VA with? is it 4.7.0.2 that's released in our latest 0.8 beta release?

lzc850612 avatar Feb 19 '20 04:02 lzc850612

@lzc850612 Yes, I am using the same version that was released as part of the 0.8 Beta Release.

manish-95 avatar Feb 19 '20 05:02 manish-95

Looks like there might be an issue with the format of the LU file it's trying to process, are you able to share the LU file that you updated?

darrenj avatar Feb 19 '20 10:02 darrenj

@darrenj Here is the file. MBVEmceeSkill_Dev.zip

manish-95 avatar Feb 20 '20 06:02 manish-95

@darrenj Any updates on this?

manish-95 avatar Feb 22 '20 12:02 manish-95

Hi @manish-95, we successfully reproduced the issue which is related to some wrong characters identified by ludown tool during the connect execution of botskills.

image

As a workaround, can you try creating the LU file using ludown? Please, follow these steps having the .json file for the Skill Bot:

  1. Install ludown tool

npm install -g ludown

  1. Execute ludown refresh --in <JSON_FILE>
  2. Check that the LU file was created correctly
  3. Execute botskills connect using the created LU file

We noticed that the LU file created by botframework-cli executing bf luis:convert is not supported by botskills as it differs with the format needed by ludown.

Comparison between the LU file format created using ludown and botframework-cli image

Finally, we will update the Known Issues documentation adding this scenario.

DiegoCardozo94 avatar Feb 27 '20 18:02 DiegoCardozo94

@manish-95 Did that help?

darrenj avatar Mar 02 '20 17:03 darrenj

Please re-open if you still have issues.

darrenj avatar Mar 06 '20 08:03 darrenj

Even after running workaround using ludown, botskills will not parse .lu file. Error seems to be with entities of List type, where there is an apostrophe in the main definition, e.g. ...

List entities

$coffeeshop:Starbuck's=

Whereas $coffeeshop:Starbucks=

  • Starbuck's works ok

IanIDG avatar May 02 '20 14:05 IanIDG

Can you update to latest botskills? Ludown is replaced with bf CLI

Get Outlook for iOShttps://aka.ms/o0ukef


From: IanIDG [email protected] Sent: Saturday, May 2, 2020 3:23:04 PM To: microsoft/botframework-solutions [email protected] Cc: Darren Jefford [email protected]; State change [email protected] Subject: Re: [microsoft/botframework-solutions] Error while running connect/update using botskills CLI (#3057)

Even after running workaround using ludown, botskills will not parse .lu file. Error seems to be with entities of List type, where there is an apostrophe in the main definition, e.g. ...

List entities

$coffeeshop:Starbuck's=

Whereas $coffeeshop:Starbucks=

  • Starbuck's works ok

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-solutions%2Fissues%2F3057%23issuecomment-622961205&data=02%7C01%7Cdarrenj%40microsoft.com%7C505a54e449344a61d97908d7eea45419%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637240261860573179&sdata=P2dUUMNbqI4mWuOc97Yk8nGGLbwyBC6Jh3IjcMaqAYY%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH7XPIBS3HJ23ZN56JEWYEDRPQUERANCNFSM4KVIKICA&data=02%7C01%7Cdarrenj%40microsoft.com%7C505a54e449344a61d97908d7eea45419%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637240261860583178&sdata=YmPn8I%2BbZGhbqJktl%2BCcT80GdHAbkPapV%2B0JSdoL%2FjY%3D&reserved=0.

darrenj avatar May 02 '20 14:05 darrenj

I am already using latest 1.0.14. Workaround easy enough, just edited the .lu to ensure no ' in the main entity definitions. I also have bf, but only needed ludown for this main issue (incompatible .lu formats between what gets created from the LUIS portal by update_cognitive_models.ps1 -RemoteToLocal and what botskills expects). I guess this tool chain is still maturing ... looking forward to next iteration.

IanIDG avatar May 02 '20 14:05 IanIDG