microsoft / botframework-solutions

Welcome to the Bot Framework Solutions repository which is the home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework. Microsoft Bot Framework is a comprehensive framework for building enterprise-grade conversational AI experiences.
https://aka.ms/bfsolutionsdocs
MIT License
1.05k stars 528 forks source link

Not recognizing established OAuth connection #2067

Closed ghost closed 5 years ago

ghost commented 5 years ago

What project is affected?

Calendar Skill OAuth Connections

What language is this in?

C#

What happens?

Cannot run the VA, throws exception. I believe I have established the correct connections after the botskills connect was not able to do it automatically. I used the az bot authsetting to create the connection after editing the AAD App Registration to no avail.

What are the steps to reproduce this issue?

This is the second VA I have created and both have run into this problem. I am just following the documentation for connecting a skill to azure.

What were you expecting to happen?

I expect the Startup.cs file to populate the settings.OAuthConnections with the correct OAuth connection but the value is null. I even tried adding a connection to the skill itself and it does get entered correctly, but it is not the correct connection or location. From my understanding it has to be a connection to AADV2 from the VA.

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

'You must configure at least one supported OAuth connection to use this skill: Calendar Skill.'

Any screenshots or additional context?

anno1 anno2

ghost commented 5 years ago

I tried to recreate the problem with the email skill and got this error.
anno3 with this log:

Cannot find the entity extractor "Message.Any" in the specified application version.

LUIS Command Line Interface - ┬® 2018 Microsoft Corporation

Imports an application to LUIS, the application's structure should be included in in the request body.

Usage: luis import application --in jSONApp.json --appName

Command arguments are: --in (required) The object to send in the body of the request
{
"intents": [
{
"name": "Greeting"
}
],
"entities": [
{
"name": "userName",
"roles": []
}
],
"composites": [],
"closedLists": [],
"regex_entities": [],
"model_features": [],
"regex_features": [],
"utterances": [
{
"text": "Hi",
"intent": "Greeting",
"entities": []
}
],
"patterns": [],
"patternAnyEntities": [],
"prebuiltEntities": [],
"luis_schema_version": "3.0.0",
"versionId": "0.1",
"name": "test1",
"desc": "",
"culture": "en-us"
}
--appName The application name to create. If not specified, the application name will be read from the imported object.

--msbot (OPTIONAL) Format the output as json for piping into msbot connect luis command Configuration and Overrides: --appId Specifies the public LUIS application id. Overrides the .luisrc value and the LUIS_APP_ID environment variable. --authoringKey Specifies the LUIS authoring key (from luis.ai portal user settings page). Overrides the .luisrc value and the LUIS_AUTHORING_KEY environment variable. --subscriptionK Specifies the LUIS subscriptionKey. Overrides the .luisrc value and the LUIS_SUBSCRIPTION_KEY environment variable. --versionId Specifies the version id. Overrides the .luisrc value and the LUIS_VERSION_ID environment variable. --region Specifies the authoring region for all requests. [westus|westeurope|australiaeast] Overrides the .luisrc value and the LUIS_REGION environment variable. --cloud Specifies the cloud region for all requests. [com|us] Overrides the .luisrc value and the LUIS_CLOUD environment variable. --stdin Pull in service keys from stdin in the format of that is the output of: msbot get service --prefix Appends [luis-apis] prefix to all messages Global Arguments: --help, -h Prints this help file. --version, -v Prints the version of this cli tool --force, -f Do not prompt for confirmation, force the operation --! Dumps all documented commands to the console with descriptions  Model  Type  StatusId  Status   Cancel Intent Classifier 9 Queued Confirm Intent Classifier 9 Queued DirectionalReference Entity Extractor 9 Queued Escalate Intent Classifier 9 Queued FinishTask Intent Classifier 9 Queued GoBack Intent Classifier 9 Queued Help Intent Classifier 9 Queued Logout Intent Classifier 9 Queued None Intent Classifier 9 Queued ReadAloud Intent Classifier 9 Queued Reject Intent Classifier 9 Queued Repeat Intent Classifier 9 Queued SelectAny Intent Classifier 9 Queued SelectItem Intent Classifier 9 Queued SelectNone Intent Classifier 9 Queued ShowNext Intent Classifier 9 Queued ShowPrevious Intent Classifier 9 Queued StartOver Intent Classifier 9 Queued Stop Intent Classifier 9 Queued  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 3 InProgr Confirm Intent Classifier 3 InProgr DirectionalReference Entity Extractor 3 InProgr Escalate Intent Classifier 3 InProgr FinishTask Intent Classifier 3 InProgr GoBack Intent Classifier 3 InProgr Help Intent Classifier 3 InProgr Logout Intent Classifier 3 InProgr None Intent Classifier 3 InProgr ReadAloud Intent Classifier 3 InProgr Reject Intent Classifier 3 InProgr Repeat Intent Classifier 3 InProgr SelectAny Intent Classifier 3 InProgr SelectItem Intent Classifier 3 InProgr SelectNone Intent Classifier 3 InProgr ShowNext Intent Classifier 3 InProgr ShowPrevious Intent Classifier 3 InProgr StartOver Intent Classifier 3 InProgr Stop Intent Classifier 3 InProgr  Model  Type  StatusId  Status   Cancel Intent Classifier 0 Success Confirm Intent Classifier 0 Success Escalate Intent Classifier 0 Success FinishTask Intent Classifier 0 Success GoBack Intent Classifier 0 Success Help Intent Classifier 0 Success Logout Intent Classifier 0 Success None Intent Classifier 0 Success ReadAloud Intent Classifier 0 Success Reject Intent Classifier 0 Success Repeat Intent Classifier 0 Success SelectAny Intent Classifier 0 Success SelectItem Intent Classifier 0 Success SelectNone Intent Classifier 0 Success ShowNext Intent Classifier 0 Success ShowPrevious Intent Classifier 0 Success StartOver Intent Classifier 0 Success Stop Intent Classifier 0 Success DirectionalReference Entity Extractor 0 Success
anusharr commented 5 years ago

@tjyml15 did you test and see if your OAuth connection is configured correctly in the portal? In the meanwhile, could you elaborate on the steps you followed or link the documentation which you referred to so that I can repro your issue?

darrenj commented 5 years ago

I can repro the Message.Any issue with the Email skill.

image


Cannot find the entity extractor "Message.Any" in the specified application version.

LUIS Command Line Interface - ┬® 2018 Microsoft Corporation

Imports an application to LUIS, the application's structure should be included in in the request body.

Usage:
luis import application --in jSONApp.json --appName <string>

Command arguments are:
 --in (required)   The object to send in the body of the request                                                                                                                      
DingmaomaoBJTU commented 5 years ago

Yes, this is a known issue as ludown v1.3.2 failed to parse pattern entities. https://github.com/microsoft/botbuilder-tools/issues/1225. We can expect it fixed in v1.3.3. Currently to make a work around, please use npm install -g ludown@1.3.1 to downgrade.