Skip to content

SpoilerLog Bug #38

@WaterKH

Description

@WaterKH

[kh3-randomizer] [2022-04-30 16:18:20] fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
[kh3-randomizer] [2022-04-30 16:18:20] Unhandled exception in circuit 'q86J23NHUe8Sda0leUZigoFRMpXjl0S3MIXQ9TGUXWc'.
[kh3-randomizer] [2022-04-30 16:18:20] System.Text.Json.JsonException: 'P' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
[kh3-randomizer] [2022-04-30 16:18:20] ---> System.Text.Json.JsonReaderException: 'P' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
[kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first) [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Utf8JsonReader.ReadSingleSegment() [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Utf8JsonReader.Read() [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
[kh3-randomizer] [2022-04-30 16:18:20] --- End of inner exception stack trace ---
[kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
[kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) [kh3-randomizer] [2022-04-30 16:18:20] at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, Type returnType, JsonSerializerOptions options) [kh3-randomizer] [2022-04-30 16:18:20] at KH3Randomizer.Pages.SpoilerLog.LoadSpoilerLog(InputFileChangeEventArgs e) in /src/KH3Randomizer/Pages/SpoilerLog.razor:line 241 [kh3-randomizer] [2022-04-30 16:18:20] at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state) [kh3-randomizer] [2022-04-30 16:18:20] at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource1 completion, SendOrPostCallback d, Object state)
[kh3-randomizer] [2022-04-30 16:18:20] at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[kh3-randomizer] [2022-04-30 16:18:20] --- End of stack trace from previous location ---
[kh3-randomizer] [2022-04-30 16:18:20] at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)

Seems like this was thrown when someone uploaded the wrong file? Potentially add file check before processing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions