abp icon indicating copy to clipboard operation
abp copied to clipboard

Problem to update solution in Abp v.3.3.0

Open EugeniZaplatin opened this issue 6 years ago • 8 comments

C:\projects\01_Rostelecom\SSKI>abp update C:\projects\SSKI\Sski.IdentityServer.sln [11:03:26 INF] ABP CLI (https://abp.io) [11:03:27 INF] Version 3.3.0 (Stable) [11:04:02 ERR] Unable to get latest preview version. [11:04:02 ERR] Unexpected character encountered while parsing value: <. Path '', line 0, position 0. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) at Volo.Abp.Cli.ProjectModification.MyGetPackageListFinder.GetPackagesAsync() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\MyGetPackageListFinder.cs:line 38 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.GetLatestVersionFromMyGet(String packageId) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 184 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.UpdateSolutionAsync(String solutionPath, Boolean includePreviews, Boolean includeReleaseCandidates, Boolean switchToStable, Boolean checkAll) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 40 at Volo.Abp.Cli.Commands.UpdateCommand.UpdateNugetPackages(CommandLineArgs commandLineArgs, String directory) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 71 at Volo.Abp.Cli.Commands.UpdateCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 43 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59

C:\projects\01_Rostelecom\SSKI>

EugeniZaplatin avatar Oct 28 '20 04:10 EugeniZaplatin

Unable to get latest preview version

May you need to switch to stable : https://docs.abp.io/en/abp/latest/CLI#switch-to-stable

realLiangshiwei avatar Oct 28 '20 04:10 realLiangshiwei

I did it. All the same:

C:\projects\SSKI>abp switch-to-stable [13:16:48 INF] ABP CLI (https://abp.io) [13:16:48 INF] Version 3.3.0 (Stable) [13:17:23 ERR] Unable to get latest preview version. [13:17:23 ERR] Unexpected character encountered while parsing value: <. Path '', line 0, position 0. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. at Newtonsoft.Json.JsonTextReader.ParseValue() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) at Volo.Abp.Cli.ProjectModification.MyGetPackageListFinder.GetPackagesAsync() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\MyGetPackageListFinder.cs:line 38 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.GetLatestVersionFromMyGet(String packageId) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 184 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.UpdateSolutionAsync(String solutionPath, Boolean includePreviews, Boolean includeReleaseCandidates, Boolean switchToStable, Boolean checkAll) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 40 at Volo.Abp.Cli.ProjectModification.PackagePreviewSwitcher.SwitchToStable(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\PackagePreviewSwitcher.cs:line 98 at Volo.Abp.Cli.Commands.SwitchToStableCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\SwitchToStableCommand.cs:line 20 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59

EugeniZaplatin avatar Oct 28 '20 06:10 EugeniZaplatin

My current version 3.2.1 stable

EugeniZaplatin avatar Oct 28 '20 06:10 EugeniZaplatin

@realLiangshiwei please try to upgrade a sample to test it.

hikalkan avatar Oct 28 '20 11:10 hikalkan

I tested, it works. I think there is no problem with CLI @EugeniZaplatin Could you provide the steps to reproduce?

image

realLiangshiwei avatar Oct 28 '20 12:10 realLiangshiwei

Indeed, I have no problem with the newly created project. The problem is only in my real business project. I have already gone through several versions and there were no problems. The first time I faced the difficulty of updating.

EugeniZaplatin avatar Oct 29 '20 04:10 EugeniZaplatin

I think it nothing to do with the version. This is related to the server's response. you can download the CLI source code and use the update command to debug and you can write the server response result here.

image

realLiangshiwei avatar Oct 29 '20 11:10 realLiangshiwei

I checked my network and found a problem with accessing the abp.io domain. After fixing this issue and successfully updated the solution. I'm sorry to bother you.

Thank you for your participation!!!

EugeniZaplatin avatar Oct 29 '20 18:10 EugeniZaplatin