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

Unable to connect to Skill Bot while running VA from Emulator

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

What project is affected?

Virtual Assistant Skill

What language is this in?

C#

What happens?

Using the new Virtual Assistant and Skill Template (version 4.7.0.2) based on 0.8 Beta Release, while attempting to access a connected skill from the Bot Framework Emulator (version 4.7.0), the status code returned is 500, with the error message as "Exception Message: Error invoking the skill id: "" at "https://api/messages" (status is 500). If I attempt the same from the Azure Portal WebChat interface, the call goes through and I am able to access the relevant Skill Bot.

What are the steps to reproduce this issue?

  1. Deploy VA and Skill Template using the version mentioned above.
  2. Connect the deployed VA and Skill Bots.
  3. Run the VA project locally in Bot Framework Emulator.
  4. Use any utterance to trigger the connected skill.
  5. Note the error as mentioned above.

What were you expecting to happen?

The VA connects to the deployed skill bot , even while testing locally from the Emulator, and not just through WebChat.

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

On further examination using App Insights Live Metrics, the following logs were obtained: Error_logs.txt

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

hi @manish-95, when skill replies to VA, it needs a public accessible SkillHostEndpoint in VA's appsettings.json. So if you would like to test a local VA connecting to a remote skill, use a local tunnel like ngrok for VA and set the value of SkillHostEndpoint like https://*.ngrok.io/api/skills. Thanks

xieofxie avatar Feb 24 '20 03:02 xieofxie

Documented here

darrenj avatar Feb 26 '20 09:02 darrenj

Let us know if you have any other issues/questions

darrenj avatar Feb 28 '20 13:02 darrenj