Closed ipraveenMS closed 4 years ago
Hi @ipraveenMS . I have encountered a similar issue before, in a previous version of the deployment scripts. At that time, one of the tools being used in the scripts was returning a message about the deprecation of the tool, concatenated to the JSON response, making the response take an invalid format. This would explain your error when trying to ConvertFromJson If I remember correctly, this was caused by the "luisgen" tool when parsing the models.
Our solution was to migrate to the bf-cli tool, for all the functionality that has already been ported.
@ipraveenMS this is probably a result of out of date CLI tools. Can you ensure you have the latest versions of the CLI tools outlined here
I ran a fresh publish with the .8 with out an issue and have the latest CLI tools. I will try again to double check but I do believe this is the root of your issue and the out of date tool is emitting an error message that is being accidentally parsed as json
@ipraveenMS I have confirmed that deployment works with the up to date bf-cli tool Please ensure you have the most up to date CLI tool installed when deploying
npm install -g @microsoft/botframework-cli botdispatch luis-apis
Also ensure previous CLI versions are not lingering on your machine.
What project is affected?
VA 0.8
What language is this in?
C#
What happens?
I create the project using 0.8 VA template. But deploying this in azure throws the error
PS C:\msazure\EngSys\Obi\assistant\src\VirtualAssistant> cd.. PS C:\msazure\EngSys\Obi\assistant\src> cd .\VirtualAssistant\ PS C:\msazure\EngSys\Obi\assistant\src\VirtualAssistant> ./Deployment/Scripts/deploy.ps1 ? Bot Name (used as default name for resource group and deployed resources): NewVA1 ? Azure resource group region: westus ? Password for MSA app registration (must be at least 16 characters long, contain at least 1 special character, and contain at least 1 numeric character): Obi1234567890#$% ? Create a new LUIS Authoring Resource? [y/n]: n ? LUIS Authoring Key: 7dc80faa20e8498c9387b6d0d3b3ccb2 ? LUIS Authoring Region (westus, westeurope, or australiaeast): westus
Any screenshots or additional context?