Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Error while connecting skill #3808

Closed
parasdesaicims opened this issue May 20, 2021 · 6 comments
Closed

Error while connecting skill #3808

parasdesaicims opened this issue May 20, 2021 · 6 comments
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository. Needs Triage Needs to be triaged for assignment Support Requesting assistance from the Support Team Team: Kobuk This issue is assigned to the Kobuk team. Type: Bug Something isn't working

Comments

@parasdesaicims
Copy link

What project is affected?

Virtual Assistant/ Skills

What language is this in?

C#

What happens?

When trying to add the skill to the bot, the script errors out while creating dispatch LUIS model JSON.
Screen Shot 2021-05-20 at 4 45 06 PM
It also doesn't update all the dispatch files it should, plus deletes the folder structure under dispatch as well. Here are before and after screenshots of the bot, skills connect deleting the folders.
Before
Screen Shot 2021-05-20 at 5 02 12 PM
After
Screen Shot 2021-05-20 at 5 03 25 PM

What are the steps to reproduce this issue?

Add skill to VA using the command :
botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --cs --luisFolder "<PATH_TO_LU_FOLDER>"

What were you expecting to happen?

Skill to connect to VA

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

attached

Any screenshots or additional context?

attached.

@parasdesaicims parasdesaicims added Needs Triage Needs to be triaged for assignment Type: Bug Something isn't working labels May 20, 2021
@ninggao ninggao added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. Support Requesting assistance from the Support Team Team: Kobuk This issue is assigned to the Kobuk team. labels May 21, 2021
@ninggao
Copy link

ninggao commented May 21, 2021

@stevkan Could you please route it to anyone who can help the customer?

@Batta32 Batta32 self-assigned this May 21, 2021
@Batta32
Copy link
Collaborator

Batta32 commented May 21, 2021

Hi @parasdesaicims, thanks for reporting the issue. The next week we will start working on this issue, as soon as we have any update, we will let you know 😊.

@cgero-msft
Copy link

Commenting to track progress @parasdesaicims

@Batta32
Copy link
Collaborator

Batta32 commented May 27, 2021

Hi @parasdesaicims, sorry for the delay. We successfully found the solution for your problem but also we reproduced the issue on our side.

To solve the issue, check in MyVirtualAssistant9en-us_Dispatch.dispatch file if the .LUIS file located in "C:\Users\Paras Desai\Documents\LM-Skill1\LMSkill_1\Deployment\Resources\LU\en-us\lmskill_1.luis" exists or not.
That resource seems to be an old skill that you have connected (not the one you are trying to connect) and the LUIS file is not present in that folder.

Here you have 2 alternatives:

  1. Keep that resource:
    1. Execute the bf luis:convert command to convert the .lu file to a LUIS application
      bf luis:convert --in "C:\Users\Paras Desai\Documents\LM-Skill1\LMSkill_1\Deployment\Resources\LU\en-us\lmskill_1.lu" --culture "en-us" --out "C:\Users\Paras Desai\Documents\LM-Skill1\LMSkill_1\Deployment\Resources\LU\en-us\lmskill_1.luis" --name "LMSkill_1"
    2. Connect the new Skill
      botskills connect --remoteManifest "https://eu2-lmskill-1-efx4ell.azurewebsites.net/manifest/manifest-1.1.json" --cs --luisFolder "C:\Users\Paras Desai\Documents\Github\LM skill\License-Provisioning-Skill\LMSkill_1\Deployment\Resources\LU"
  2. Remove that resource:
    1. Obtain the ID of the incorrect resource
      botskills list --cs
    2. Disconnect the incorrect resource
      botskills disconnect --i "<OBTAINED_ID>" --cs
    3. Connect the new Skill
      botskills connect --remoteManifest "https://eu2-lmskill-1-efx4ell.azurewebsites.net/manifest/manifest-1.1.json" --cs --luisFolder "C:\Users\Paras Desai\Documents\Github\LM skill\License-Provisioning-Skill\LMSkill_1\Deployment\Resources\LU"

We followed these steps to reproduce the issue:

  1. Connect first skill to the Virtual Assistant
  2. Delete generated .luis file of the first skill
  3. Connect second skill to the Virtual Assistant
  4. See error during the dispatch refresh

Hope this helps 😊.

.dispatch with the incorrect (removed) and correct LUIS files
image

Issue reproduced
image

@johnataylor johnataylor added the customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. label Jun 1, 2021
@parasdesaicims
Copy link
Author

yes. @Batta32 after doing the above steps, I was able to add the skill. Though one more step to follow would be the refresh of the cognitive models from Local to remote (or w/o -Remotetolocal tag) would make sure the Bot gets pushed to the teams correctly.

One issue I am facing, and I feel it's a bug. I have added authentication to the skill, while everything runs smoothly in the skill itself when I am trying to run the same auth with VA it doesn't take the clicks on the login button(shows the link correctly) in teams even though there is an activity handler set up in the class. Please let me know if you need more information or shall I open another request. Attaching the screenshot here.
Screen Shot 2021-06-07 at 2 51 52 PM

@Batta32
Copy link
Collaborator

Batta32 commented Jun 8, 2021

Great @parasdesaicims! Glad to hear that the connection worked now, we will close this issue 😊.

About the authentication's problem, can you raise a new issue in the repository explaining the step by step and environment that you are following?

@Batta32 Batta32 closed this as completed Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. customer-reported Issue is created by anyone that is not a collaborator in the repository. Needs Triage Needs to be triaged for assignment Support Requesting assistance from the Support Team Team: Kobuk This issue is assigned to the Kobuk team. Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants