Я пытаюсь добавить экспериментальный навык Погода в Виртуальный помощник и проверить его с помощью веб-теста Azure.И Virtual Assistant, и Weather Skill работают как положено, но если я использую botskills connect, чтобы присоединить навык к помощнику, повторно опубликую его и протестирую в Azure, то спросите погоду в Virtual Assistant, на которой написано «Отправка... Ошибка отправки "
Я вижу ошибку тайм-аута шлюза при проверке страницы каналов.
" Произошла ошибка при отправке этого сообщения вашему боту: код состояния HTTP GatewayTimeout "
При использовании следующей команды для присоединения навыка к Виртуальному помощнику
botskills connect --botName MyBotName-xxxxx --remoteManifest "https://weatherskill -xxxxx.azurewebsites.net / api /skill / manifest"--luisFolder" (путь к папке с решением для навыка) \ Deployment \ Resources \ LU \ en \ "--cs --verbose
все выглядит нормально, пока я не получу это предупреждение
"Не удалось настроить соединение для проверки подлинности автоматически. В манифесте Skills отсутствует соединение для проверки подлинности Azure Active Directory v2."
Не удалосьвопрос быть связанным с этим?Как я могу решить эту проблему?
Здесь я публикую код, запрошенный в комментариях.
РЕДАКТИРОВАТЬ: я хотел бы отметить, что виртуальный помощник и навык находятся в двух разных группах ресурсов Azure.тоже
ИЗ ВИРТУАЛЬНОГО ПОМОЩНИКА:
skill.json:
{
"skills": [
{
"id": "WeatherSkill",
"msaAppId": "obfuscated",
"name": "WeatherSkill",
"endpoint": "https://magicbotreplyweatherskill-xxxxxxx.azurewebsites.net/api/skill/messages",
"description": "The weather skill provides an example of displaying the current weather using AccuWeather.",
"authenticationConnections": [],
"actions": [
{
"id": "WeatherSkill_getForecast",
"definition": {
"description": "Showing the weather forecast.",
"slots": [
{
"name": "location",
"types": [
"string"
]
}
],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"WeatherSkill#GetForecast"
]
}
]
}
}
}
]
}
]
}
appsettings.json:
{
"oauthConnections": [],
"microsoftAppId": "obfuscated",
"microsoftAppPassword": "obfuscated",
"contentModerator": {
"key": "obfuscated"
},
"qnaMaker": {
"endpoint": "https://magicbotreplyresourcegroup-qnahost-xxxxxxx.azurewebsites.net",
"key": "obfuscated"
},
"blobStorage": {
"connectionString": "DefaultEndpointsProtocol=https;AccountName=magicbotreplyresourcegro;AccountKey=obfuscated;EndpointSuffix=core.windows.net",
"container": "transcripts"
},
"applicationInsights": {
"InstrumentationKey": "obfuscated"
},
"botWebAppName": "MagicBotReplyResourceGroup-xxxxxxx",
"luis": {
"accountName": "MagicBotReplyResourceGroup-luis-xxxxxxx",
"key": "obfuscated",
"region": "westeurope"
},
"cosmosDb": {
"authKey": "obfuscated",
"collectionId": "botstate-collection",
"cosmosDBEndpoint": "https://magicbotreplyresourcegroup-xxxx.documents.azure.com:443/",
"databaseId": "botstate-db"
},
"WeatherApiKey": "obfuscated"
}
launchsettings.json:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:xxxx/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"VirtualAssistantTest1": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:xxxx/"
}
}
}
botname_en_dispatch.dispatch:
{
"authoringRegion": "westeurope",
"culture": "en-us",
"hierarchical": true,
"useAllTrainingData": false,
"dontReviseUtterance": false,
"copyLuisData": true,
"normalizeDiacritics": true,
"services": [
{
"intentName": "l_General",
"appId": "obfuscated",
"authoringKey": "obfuscated",
"version": "0.1",
"region": "westeurope",
"type": "luis",
"name": "MaGiCBoTen_General",
"id": "1"
},
{
"intentName": "q_Chitchat",
"kbId": "obfuscated",
"subscriptionKey": "obfuscated",
"type": "qna",
"name": "Chitchat",
"id": "2"
},
{
"intentName": "q_Faq",
"kbId": "obfuscated",
"subscriptionKey": "obfuscated",
"type": "qna",
"name": "Faq",
"id": "3"
}
],
"serviceIds": [
"1",
"2",
"3"
],
"appId": "obfuscated",
"authoringKey": "obfuscated",
"version": "Dispatch",
"region": "westeurope",
"type": "dispatch",
"name": "MaGiCBoTen_Dispatch"
}
cognitivemodels.json:
{
"defaultLocale": "en-us",
"cognitiveModels": {
"en": {
"dispatchModel": {
"appid": "obfuscated",
"name": "MagicBotReplyResourceGroupen_Dispatch",
"authoringkey": "obfuscated",
"subscriptionkey": "obfuscated",
"authoringRegion": "westeurope",
"type": "dispatch",
"region": "westeurope"
},
"languageModels": [
{
"region": "westeurope",
"authoringRegion": "westeurope",
"subscriptionkey": "obfuscated",
"name": "MagicBotReplyResourceGroupen_General",
"appid": "obfuscated",
"authoringkey": "obfuscated",
"version": "0.1",
"id": "General"
}
],
"knowledgebases": [
{
"hostname": "https://magicbotreplyresourcegroup-qnahost-xxxxxxx.azurewebsites.net",
"name": "Chitchat",
"kbId": "obfuscated",
"subscriptionKey": "obfuscated",
"id": "Chitchat",
"endpointKey": "obfuscated"
},
{
"hostname": "https://magicbotreplyresourcegroup-qnahost-xxxxxxx.azurewebsites.net",
"name": "Faq",
"kbId": "obfuscated",
"subscriptionKey": "obfuscated",
"id": "Faq",
"endpointKey": "obfuscated"
}
]
}
}
}
ДЛЯ ПРОЕКТА НАВЫКОВ:
appsettings.json:
{
"oauthConnections": [
{
"name": "",
"provider": ""
}
],
"WeatherApiKey": "obfuscated",
"microsoftAppId": "obfuscated",
"microsoftAppPassword": "obfuscated",
"blobStorage": {
"connectionString": "DefaultEndpointsProtocol=https;AccountName=magicbotreplyweatherskil;AccountKey=obfuscated;EndpointSuffix=core.windows.net",
"container": "transcripts"
},
"applicationInsights": {
"InstrumentationKey": "obfuscated"
},
"luis": {
"accountName": "magicbotreplyweatherskill-luis-yyyyyyy",
"key": "obfuscated",
"region": "westeurope"
},
"botWebAppName": "magicbotreplyweatherskill-yyyyyyy",
"cosmosDb": {
"authKey": "obfuscated",
"collectionId": "botstate-collection",
"cosmosDBEndpoint": "https://magicbotreplyweatherskill-xxxxx.documents.azure.com:443/",
"databaseId": "botstate-db"
}
}
launchsettings.json:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:xxxx/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"WeatherSkill": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:xxxx/"
}
}
}
cognitivemodels.json:
{
"defaultLocale": "en-us",
"cognitiveModels": {
"en": {
"languageModels": [
{
"id": "General",
"authoringKey": "obfuscated",
"version": "0.1",
"appId": "obfuscated",
"authoringRegion": "westeurope",
"subscriptionKey": "obfuscated",
"name": "magicbotreplyweatherskillen_General",
"region": "westeurope"
},
{
"id": "WeatherSkill",
"authoringKey": "obfuscated",
"version": "0.1",
"appId": "obfuscated",
"authoringRegion": "westeurope",
"subscriptionKey": "obfuscated",
"name": "magicbotreplyweatherskillen_WeatherSkill",
"region": "westeurope"
}
]
}
}
}