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

Not able to access skill which is an existing SDK v4 bot from the virtual assistant #1679

Closed
Basavarajsk opened this issue Jun 27, 2019 · 8 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. Language: Typescript This issue is specifically related to C# implementations. Status: Backlog This will go in the product backlog Type: Bug Something isn't working

Comments

@Basavarajsk
Copy link

I converted the existing SDK v4 bot to skill which is in node js. Connected this bot to virtual assistant using localManifest.
When i tried to contact this skill from the virtual assistant, skill is not getting any request from the VA. I could see in VA it triggered the skill dailog.

@Basavarajsk Basavarajsk added the Type: Bug Something isn't working label Jun 27, 2019
@darrenj
Copy link
Contributor

darrenj commented Jun 27, 2019

Hi,

Can you provide some more information as to your scenario?

  • Are you using a C# based Virtual Assistant or Typescript
  • Skill is in nodeJS/Typescript?
  • Did you add the Skill to your VA bot using the botskills tool?
  • When using the emulator to talk to VA, when you try to trigger the Skill do you see any messages/warnings in the debug pane?
  • Any exceptions in AppInsights you can see?

@Basavarajsk
Copy link
Author

Hi,
Below are the information.

  • My virtual assistant is Typescript

  • Skill is in nodejs. Converted the existing SDK v4 bot as skill.

  • Added skill to VA bot using localManifest, as I am getting an error 404 source not found with remotemanifest. Below is the command I am using for remote manifest connection
    botskills connect --botName "zbrvirtualassistantbot" --remoteManifest "https://testsdk4skill.azurewebsites.net/api/skill/manifest" --ts

  • No I am not getting an warnings or errors but bot is posting typing activity only.

  • Yes, I could see below exceptions in skill's appInsights

  1. TypeError:
    at CustomSkillAdapter.processActivity (at CustomSkillAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpBotAdapter.js:55:30)at CustomSkillAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpBotAdapter.js:55:30): D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpBotAdapter.jsat CustomSkillAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpBotAdapter.js:55:30): 55)
    at SkillHttpAdapter.processActivity (at SkillHttpAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpAdapter.js:41:54)at SkillHttpAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpAdapter.js:41:54): D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpAdapter.jsat SkillHttpAdapter.processActivity (D:\home\site\wwwroot\node_modules\botbuilder-skills\lib\http\skillHttpAdapter.js:41:54): 41)
    at process._tickCallback (at process._tickCallback (internal/process/next_tick.js:68:7)at process._tickCallback (internal/process/next_tick.js:68:7): internal/process/next_tick.jsat process._tickCallback (internal/process/next_tick.js:68:7): 68)

  2. Microsoft.Bot.Schema.BotException:
    at Microsoft.Bot.ChannelConnector.BotAPI+d__31.MoveNext (Microsoft.Bot.Base.ChannelConnector, Version=3.2.3.3, Culture=neutral, PublicKeyToken=null)
    Inner exception System.Exception handled at Microsoft.Bot.ChannelConnector.BotAPI+d__31.MoveNext:
    at Microsoft.Bot.ChannelConnector.BotAPI.ThrowOnFailedStatusCode (Microsoft.Bot.Base.ChannelConnector, Version=3.2.3.3, Culture=neutral, PublicKeyToken=null)
    at Microsoft.Bot.ChannelConnector.BotAPI+d__31.MoveNext (Microsoft.Bot.Base.ChannelConnector, Version=3.2.3.3, Culture=neutral, PublicKeyToken=null)

@dfavretto dfavretto self-assigned this Jul 1, 2019
@lauren-mills lauren-mills added Status: Backlog This will go in the product backlog Language: Typescript This issue is specifically related to C# implementations. labels Jul 1, 2019
@lauren-mills lauren-mills added this to Backlog in Skills via automation Jul 1, 2019
@lauren-mills lauren-mills removed this from Backlog in Skills Jul 2, 2019
@dfavretto
Copy link
Contributor

Hi @Basavarajsk,

First of all, we would like to understand the reason of the error using botskills tool. The tool is getting an error 404 and that's because your remoteManifest doesn't exist or the tool can't reach to it.
• Are you using the latest version (v1.0.7) of the botskills tool?
• Can you execute again the connect command with --verbose argument and send us the output of the process?

About the connection of the Virtual Assistant and the Skill using localManifest:
• Can you check if the connection was successful? You can check this by seeing if the Virtual Assistant's Dispatch contains your skill information, like the path to your Skill's LU file.
• As @darrenj asked, when sending a message in the Bot Framework Emulator, do you see the following message in the lateral pane of the emulator?

--> Forwarding your utterance to the <YOUR_SKILL_NAME> skill.

@Basavarajsk
Copy link
Author

Hi @dfavretto,

  • PFA

image

  • Yes, i can see the my skill utterances in dispatcher module of the VA.

  • Yes I can see the message as "Handing off to the <SKILL_NAME> skill.

image

@Batta32
Copy link
Collaborator

Batta32 commented Jul 10, 2019

Hi @Basavarajsk,

The manifest that you are providing to the botskills tool is a resource that the tool cannot find. Please, check that your remote manifest is available, valid and if the index file of your skill contains the endpoint of /api/skill/manifest like the ones that are generated using the generator-botbuilder-assistant or the sample-skill

Regarding to the connection of the skill to the assistant, can you try to connect the sample-skill of the repo, and test the connection between them? So we can narrow the possible issues to the Skill, discarding any other possibilities.

@darrenj darrenj added the customer-reported Issue is created by anyone that is not a collaborator in the repository. label Jul 23, 2019
@darrenj
Copy link
Contributor

darrenj commented Aug 1, 2019

@Basavarajsk Any update on this?

@lauren-mills lauren-mills added 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. labels Aug 15, 2019
@darrenj
Copy link
Contributor

darrenj commented Aug 16, 2019

PR for the JS StreamingExtensions library is here FYI: microsoft/botbuilder-js#1081

@darrenj
Copy link
Contributor

darrenj commented Oct 8, 2019

Work is tracked here and targeting next release. Please keep an eye on the issue and we'll point at daily builds when available.

@darrenj darrenj closed this as completed Oct 8, 2019
BotSkills CLI & JS Skill Template automation moved this from Backlog to Done Oct 8, 2019
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. Language: Typescript This issue is specifically related to C# implementations. Status: Backlog This will go in the product backlog Type: Bug Something isn't working
Development

No branches or pull requests

5 participants