Bili.Copilot icon indicating copy to clipboard operation
Bili.Copilot copied to clipboard

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

Open zyinventory opened this issue 2 months ago • 0 comments

Bug 描述

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

复现问题的步骤

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

预期行为

稍后再看列表正常显示

截图

image

应用来源

  • [X] Github
  • [ ] AppCenter
  • [ ] 其它

其它来源

No response

系统版本

  • [ ] Windows 11 21H2 (Build 22000)
  • [ ] Windows 11 22H2 (Build 22621)
  • [X] 其它 (需注明)

其它系统版本

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

zyinventory avatar Apr 29 '24 13:04 zyinventory