Skip to content

[Bug]: CNB软件源似乎无法使用 #830

@RickyYang0325

Description

@RickyYang0325

Affected Version

Collapse 1.83.12 Preview

Bug Behavior

使用CNB软件源检查启动器更新时报错:
System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader&, ExceptionResource, Byte, ReadOnlySpan1) + 0x15 at System.Text.Json.Utf8JsonReader.Read() + 0x6b at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader&, T&, JsonSerializerOptions, ReadStack&) + 0x3c
--- End of inner exception stack trace ---
at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack&, JsonReaderException) + 0x2ea
at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader&, T&, JsonSerializerOptions, ReadStack&) + 0x14c at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader&, ReadStack&) + 0x2d
at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1, JsonTypeInfo1, Nullable1) + 0xe5 at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1, JsonTypeInfo1) + 0x10f at System.Text.Json.JsonSerializer.Deserialize[TValue](String, JsonTypeInfo1) + 0x57
at Velopack.Sources.SimpleWebSource.d__12.MoveNext() + 0xc2
--- End of stack trace from previous location ---
at Velopack.UpdateManager.d__37.MoveNext() + 0x8c
--- End of stack trace from previous location ---
at CollapseLauncher.Helper.Update.LauncherUpdateHelper.d__9.MoveNext() + 0x89
--- End of stack trace from previous location ---
at CollapseLauncher.Pages.SettingsPage.d__30.MoveNext() + 0x78

Expected Behavior

应该正常检查更新,毕竟官方文档提到:
Available CDNs:
1、GitHub (Main)
2、Cloudflare (Cloudfare R2, Southeast Asia region)
3、GitLab
3、CNB (Mainland China)
(来源:https://collapselauncher.com/docs/development-workflows.html)

Steps to reproduce

左侧边栏“程序设置”->“仓库CDN”把CDN设置为CNB,再检查更新

Related Issues

No response

Screenshot(s)

Image

Additional Information

DxDiag.txt

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: LauncherIssue labeled for Launcher update mechanismBugSomething isn't workingFixedIssue has been fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions