Richasy / Bili.Copilot

B站第三方 Windows 桌面客户端,使用 Windows App SDK 构建的原生高颜值应用
GNU General Public License v3.0
2.72k stars 67 forks source link

[Bug] 有的视频导致稍后再看列表崩溃 #391

Closed zyinventory closed 3 months ago

zyinventory commented 5 months ago

Bug 描述

BV1NznYebE7V 这样的视频会导致稍后再看列表崩溃

复现问题的步骤

将 BV1NznYebE7V 加入稍后再看,然后打开或刷新稍后再看列表,就会报错

预期行为

稍后再看列表正常显示

截图

image

应用来源

其它来源

No response

系统版本

其它系统版本

win10 pro 22H2

运行设备

桌面/台式机

日志记录

2024/04/29 21:53:27.775|Error|System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $.data.list[0].aid | LineNumber: 0 | BytePositionInLine: 81.|System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $.data.list[0].aid | LineNumber: 0 | BytePositionInLine: 81. ---> System.FormatException: Either the JSON value is not in a supported format, or is out of bounds for an Int32. at System.Text.Json.ThrowHelper.ThrowFormatException(NumericType numericType) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TCollection& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo1 jsonTypeInfo) at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options) at Bili.Copilot.Libs.Provider.HttpProvider.ParseAsync[T](HttpResponseMessage response) at Bili.Copilot.Libs.Provider.AccountProvider.GetViewLaterListAsync() at Bili.Copilot.ViewModels.ViewLaterDetailViewModel.GetDataAsync() at Bili.Copilot.ViewModels.InformationFlowViewModel1.ReloadAsync()

备注

No response

人人为我,我为人人

None