abp icon indicating copy to clipboard operation
abp copied to clipboard

abp add-package Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme --with-source-code --add-to-solution-file

Open matteosanguin opened this issue 7 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Description

With abp studio cli when i run :

abp add-package Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme --with-source-code --add-to-solution-file

I receive a 500 from https://abp.io/api/download/nugetPackage/:

[09:10:24 INF] Generating style bundle... [09:10:24 INF] Style bundle has been generated successfully. [09:10:24 INF] Generating script bundle... [09:10:25 INF] Script bundle has been generated successfully. [09:10:25 WRN] Couldn't run bundle for blazor. [09:10:25 INF] Successfully installed. [09:10:25 INF] Downloading source code of Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme [09:10:25 INF] Version: 9.1.1 [09:10:25 INF] Output folder: C:\tmp\dev\Fines\packages\Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme [09:10:25 INF] Downloading nugetPackage: Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme, version: 9.1.1 Error occured while downloading source-code from https://abp.io/api/download/nugetPackage/ : StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { Date: Mon, 09 Jun 2025 07:10:26 GMT Transfer-Encoding: chunked Connection: keep-alive Cf-Ray: 94cecf23dd4cea49-FCO Cache-Control: no-cache,no-store Pragma: no-cache Set-Cookie: .AspNetCore.Antiforgery.-6OvtTX3HwI=CfDJ8IwzuFo17GBFmgtNUtaZGbIV2EjArZ2giCpKuDUYljAEOuSoNu99ttleKyQoHJmtTe38kOqlT4dkDE030m9xGk7h8eOHS_z7b-jVTioTDBO29wQgr_aSt7Ec8T8wQQInz9NGmLpH5nilxmaGKL9PGK4; path=/; samesite=strict; httponly Set-Cookie: XSRF-TOKEN=CfDJ8IwzuFo17GBFmgtNUtaZGbLpL4DRn3HBuk3VOve4ICzQaEgbnaJwPz51EQ-0PGf3mxSaMSmmgJz9qiwXpS-bhUW99vaFHWtMVeMj-c_DOPaziTNYkzMA-vB7kIDQQXA-l9BrOS9pyoKFask7uzhgLst3aM0gFzwESDadjWpr1vByl1S6FZ8ZgmVJfFxApBKQIQ; expires=Tue, 09 Jun 2026 07:10:25 GMT; path=/; secure; samesite=none Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN X-Correlation-Id: 5cf73b8426b843b095befe52de598abd Cf-Cache-Status: DYNAMIC Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=Rr85CRZpb4PwXJiMJcOBT6NcFF2t2ogQrk%2FgiI5K1l1Erw%2BQoZZ4dUxgBTHsmDOCbFwUgNT3VlLebU%2BPi5pfH11r6hJ2LVN8m2uYWywCdWKBZGt%2BefbtRw%3D%3D"}],"group":"cf-nel","max_age":604800}
Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} Server: cloudflare Server-Timing: cfL4;desc="?proto=TCP&rtt=25731&min_rtt=16640&rtt_var=12849&sent=31&recv=20&lost=0&retrans=0&sent_bytes=28925&recv_bytes=7384&delivery_rate=1158484&cwnd=158&unsent_bytes=0&cid=aba76ba276901c66&ts=43713&x=0" Content-Type: text/html; charset=utf-8 Expires: -1 } '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. at void System.Text.Json.ThrowHelper.ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan bytes) at bool System.Text.Json.Utf8JsonReader.ConsumeValue(byte marker) at bool System.Text.Json.Utf8JsonReader.ReadFirstToken(byte first) at bool System.Text.Json.Utf8JsonReader.ReadSingleSegment() at bool System.Text.Json.Utf8JsonReader.Read() at bool System.Text.Json.Serialization.JsonConverter1.ReadCore(ref Utf8JsonReader reader, out T value, JsonSerializerOptions options, ref ReadStack state) at void System.Text.Json.ThrowHelper.ReThrowWithPath(ref ReadStack state, JsonReaderException ex) at bool System.Text.Json.Serialization.JsonConverter1.ReadCore(ref Utf8JsonReader reader, out T value, JsonSerializerOptions options, ref ReadStack state) at T System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(ref Utf8JsonReader reader, ref ReadStack state) at TValue System.Text.Json.JsonSerializer.ReadFromSpan<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, int? actualByteCount) at TValue System.Text.Json.JsonSerializer.ReadFromSpan<TValue>(ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo) at TValue System.Text.Json.JsonSerializer.Deserialize<TValue>(string json, JsonSerializerOptions options) at T Volo.Abp.Json.SystemTextJson.AbpSystemTextJsonSerializer.Deserialize<T>(string jsonString, bool camelCase) at async Task<string> Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.GetAbpRemoteServiceErrorAsync( HttpResponseMessage responseMessage) at async Task Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync( HttpResponseMessage responseMessage) at async Task<byte[[]]> Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.RiVTJD4Gln(SourceCodeDownloadInputDto ) at async Task<TemplateFile> Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(string name, string type, string version, string templateSource, bool includePreReleases, bool skipCache, bool trustUserVersion) at async Task<ProjectBuildResult> Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.BuildAsync(ProjectBuildArgs args) at async Task Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadNugetPackageAsync(string packageName, string outputFolder, string version) at async Task Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.DownloadSourceCode(string targetFolder, NugetPackageInfo package, string version) at async Task Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddSourceCode(string projectFile, string solutionFile, NugetPackageInfo package, string version) at async Task Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddAsync(string solutionFile, string projectFile, NugetPackageInfo package, string version, bool useDotnetCliToInstall, bool withSourceCode, bool addSourceCodeToSolutionFile) at async Task Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddAsync(string solutionFile, string projectFile, string packageName, string version, bool useDotnetCliToInstall, bool withSourceCode, bool addSourceCodeToSolutionFile) at async Task Volo.Abp.Cli.Commands.AddPackageCommand.ExecuteAsync(CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args) Unhandled exception. System.Text.Json.JsonException: '<' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0. ---> System.Text.Json.JsonReaderException: '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at Volo.Abp.Json.SystemTextJson.AbpSystemTextJsonSerializer.Deserialize[T](String jsonString, Boolean camelCase) at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.GetAbpRemoteServiceErrorAsync(HttpResponseMessage responseMessage) at Volo.Abp.Cli.ProjectBuilding.RemoteServiceExceptionHandler.EnsureSuccessfulHttpResponseAsync(HttpResponseMessage responseMessage) at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.RiVTJD4Gln(SourceCodeDownloadInputDto ) at Volo.Abp.Cli.ProjectBuilding.AbpIoSourceCodeStore.GetAsync(String name, String type, String version, String templateSource, Boolean includePreReleases, Boolean skipCache, Boolean trustUserVersion) at Volo.Abp.Cli.ProjectBuilding.NugetPackageProjectBuilder.BuildAsync(ProjectBuildArgs args) at Volo.Abp.Cli.Commands.Services.SourceCodeDownloadService.DownloadNugetPackageAsync(String packageName, String outputFolder, String version) at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.DownloadSourceCode(String targetFolder, NugetPackageInfo package, String version) at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddSourceCode(String projectFile, String solutionFile, NugetPackageInfo package, String version) at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddAsync(String solutionFile, String projectFile, NugetPackageInfo package, String version, Boolean useDotnetCliToInstall, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile)
at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddAsync(String solutionFile, String projectFile, String packageName, String version, Boolean useDotnetCliToInstall, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile) at Volo.Abp.Cli.Commands.AddPackageCommand.ExecuteAsync(CommandLineArgs commandLineArgs) at Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs) at Volo.Abp.Studio.Cli.StudioCliService.RunAsync(String[] args) at Volo.Abp.Studio.Cli.Program.AA2EYpD8A(Object ) at Volo.Abp.Studio.Cli.Program.<Main>(String[] args)

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

9.1.1

User Interface

Common (Default)

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

matteosanguin avatar Jun 09 '25 07:06 matteosanguin

hi

What is your CLI version?

dotnet tool list -g

[15:40:19 INF] Downloading source code of Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme
[15:40:19 INF] Version: 9.1.1
[15:40:19 INF] Output folder: packages/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme
[15:40:21 INF] Downloading nugetPackage: Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme, version: 9.1.1
[15:40:22 INF] 'Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme' has been successfully downloaded to 'packages/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme'

maliming avatar Jun 09 '25 07:06 maliming

hi,

volo.abp.studio.cli 0.9.26 abp

Il giorno lun 9 giu 2025 alle ore 09:41 maliming @.***> ha scritto:

maliming left a comment (abpframework/abp#23023) https://github.com/abpframework/abp/issues/23023#issuecomment-2954959163

hi

What is your CLI version?

dotnet tool list -g

[15:40:19 INF] Downloading source code of Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme[15:40:19 INF] Version: 9.1.1[15:40:19 INF] Output folder: packages/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme[15:40:21 INF] Downloading nugetPackage: Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme, version: 9.1.1[15:40:22 INF] 'Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme' has been successfully downloaded to 'packages/Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme'

— Reply to this email directly, view it on GitHub https://github.com/abpframework/abp/issues/23023#issuecomment-2954959163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKAEJAAXXADIMK32XJMJST3CU3D7AVCNFSM6AAAAAB64GPVROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJUHE2TSMJWGM . You are receiving this because you authored the thread.Message ID: @.***>

matteosanguin avatar Jun 09 '25 07:06 matteosanguin