Just was going through discover section and suddenly got crashed
Here is the crash log from the log file:
2023-08-16 18:54:51.114 +05:30 [FTL] The JSON value could not be converted to System.Int64. Path: $.anidb | LineNumber: 0 | BytePositionInLine: 13.
System.Text.Json.JsonException: The JSON value could not be converted to System.Int64. Path: $.anidb | LineNumber: 0 | BytePositionInLine: 13.
---> System.InvalidOperationException: Cannot get the value of a token type 'Null' as a number.
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_ExpectedNumber(JsonTokenType tokenType)
at System.Text.Json.Utf8JsonReader.TryGetInt64(Int64& value)
at System.Text.Json.Utf8JsonReader.GetInt64()
at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) 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)
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.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo)
at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)
at Totoro.Core.Services.AnimeIdService.GetIdInternal(String source, Int64 id) in D:\a\Totoro\Totoro\Totoro.Core\Services\AnimeIdService.cs:line 33
at Totoro.Core.ViewModels.AboutAnimeViewModel.<>cDisplayClass3_0.<<-ctor>b21>d.MoveNext() in D:\a\Totoro\Totoro\Totoro.Core\ViewModels\AboutAnimeViewModel.cs:line 95
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>cDisplayClass2_0.b__0()
Just was going through discover section and suddenly got crashed
Here is the crash log from the log file:
2023-08-16 18:54:51.114 +05:30 [FTL] The JSON value could not be converted to System.Int64. Path: $.anidb | LineNumber: 0 | BytePositionInLine: 13. System.Text.Json.JsonException: The JSON value could not be converted to System.Int64. Path: $.anidb | LineNumber: 0 | BytePositionInLine: 13. ---> System.InvalidOperationException: Cannot get the value of a token type 'Null' as a number. at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_ExpectedNumber(JsonTokenType tokenType) at System.Text.Json.Utf8JsonReader.TryGetInt64(Int64& value) at System.Text.Json.Utf8JsonReader.GetInt64() at System.Text.Json.Serialization.JsonConverterb 128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>cDisplayClass2_0.b__0()
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo
1.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.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) 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.JsonConverter
1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo) at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Totoro.Core.Services.AnimeIdService.GetIdInternal(String source, Int64 id) in D:\a\Totoro\Totoro\Totoro.Core\Services\AnimeIdService.cs:line 33 at Totoro.Core.ViewModels.AboutAnimeViewModel.<>cDisplayClass3_0.<<-ctor>b21>d.MoveNext() in D:\a\Totoro\Totoro\Totoro.Core\ViewModels\AboutAnimeViewModel.cs:line 95 --- End of stack trace from previous location --- at System.Threading.Tasks.Task.<>c.