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

Bot Framework V4 Virtual Assistant Template Deployment Issue >Local fine

Open GayathriR2018 opened this issue 7 years ago • 6 comments

Hi, I am using the Virtual Assistant template for our client bot development. I have added no additional code for now and updated the appsettings.json & cognitiveModels.json files with our specific keys.

Code runs fine locally. However when deploying from Visual Studio to App service, getting error. Sharing details below. Could some let us know if we are missing any key details? While publishing to DEV/ QA only change is in the appsetings.json file, where in local we keep the microsoftAppId & pwd as "" and during deployment, we updated these keys to the corresponding values.

Issue: Bot Framework: V 4 & Bot Builder : 4.5.1 Code Base: .Net Core 2.2 Template: Virtual Assistant Issue Environment: Dev/ QA Azure Channel with Issue: WebChat & DirectLine Error from insights: While trying to testing bot in Azure portal test in web chat / using directline testing, we get the unable to send message error. Error is null reference issue sometimes at the WebSocketEnabledHttpAdapter in Bot Controller file. 1. Unable to resolve service for type 'Microsoft.Bot.Builder.StreamingExtensions.WebSocketEnabledHttpAdapter' while attempting to activate 'MyAssistant1.Controllers.BotController'.

2. OAuth error

Result code | 400 |   Dependency call status | false |   Dependency duration | 114 ms |   Remote dependency name | POST /botframework.com/oauth2/token image InvalidOperation OauthError Null

GayathriR2018 avatar Aug 13 '19 09:08 GayathriR2018

Adding a snippet with the Deployment configs from Visual Studio VisualStudioDeployment_Config

GayathriR2018 avatar Aug 13 '19 09:08 GayathriR2018

Snippet From Live Metric Stream- For trouble shooting if it helps

image

GayathriR2018 avatar Aug 13 '19 09:08 GayathriR2018

@GayathriR2018 what is the version of the Virtual Assistant Template and Microsoft.Bot.Builder.Skills package you're using?

lzc850612 avatar Aug 15 '19 18:08 lzc850612

Hi, @lzc850612 We are using VirtualAssistantTemplate.d2246051-7779-4196-af1f-ae7e2562ec8e.4.5.1 template and Skills Package 4.5.3

Also quick question, hope the below parameters specified in our appsettings.json file suffices? oauthConnections are given as empty.

{ "microsoftAppId": "123dummy", "microsoftAppPassword": "123dummy", "oauthConnections": [], //empty "ApplicationInsights": { "InstrumentationKey": "123dummy" }, "blobStorage": {

"connectionString": "DefaultEndpointsProtocol=dummy",

"container": "transcripts"

}, "cosmosDb": { "collectionId": "botstate-collection", "databaseId": "botstate-db", "cosmosDBEndpoint": "", "authKey": "" }, "contentModerator": { "key": "" } }

GayathriR2018 avatar Aug 19 '19 11:08 GayathriR2018

The appsettings file looks pretty empty to me (if you didn't intentionally leave them blank). This means there's something wrong when you run the deployment script deploy.ps1. Did you successfully run the deployment script?

lzc850612 avatar Aug 19 '19 17:08 lzc850612

Closing due to inactivity. Please reopen as needed.

lauren-mills avatar Aug 26 '19 18:08 lauren-mills