IMenuParsingBackgroundJob.ProcessAsync

The job is finished. It will be removed automatically 01/01/0001 00:00:00.
// Id: #7
using MenuOcr.Api.Application.Abstractions;

var menuParsingBackgroundJob = Activate<IMenuParsingBackgroundJob>();
await menuParsingBackgroundJob.ProcessAsync(
    FromJson<Guid>("\"e4f9059f-8da3-4e32-914e-f083ddb3569e\""));

Parameters

CurrentCulture
""
RetryCount
10

State

02/24/2026 15:19:40 (+14m 49.579s) Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.129s Processing

Server:
e2ac64ab3495:1
Worker:
3eb7e334

+1h 53m Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 10 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 15:04:44

+18m 39.769s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.160s Processing

Server:
e2ac64ab3495:1
Worker:
0e23b1d6

+1h 11m Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 9 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 12:52:44

+17m 42.112s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.240s Processing

Server:
e2ac64ab3495:1
Worker:
25856540

+43m 6.782s Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 8 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 11:23:16

+14m 46.676s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+7.845s Processing

Server:
e2ac64ab3495:1
Worker:
249b60b4

+24m 37.265s Enqueued

Triggered by DelayedJobScheduler

+3ms Scheduled

Retry attempt 7 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 10:25:13

+14m 48.859s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 742 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 742 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.766s Processing

Server:
e2ac64ab3495:1
Worker:
249b60b4

+10m 40.305s Enqueued

Triggered by DelayedJobScheduler

+6ms Scheduled

Retry attempt 6 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 09:45:54

+16m 54.673s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 744 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+10.641s Processing

Server:
e2ac64ab3495:1
Worker:
249b60b4

+6m 18.843s Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 5 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 09:17:56

+17m 6.919s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 783 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 783 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.816s Processing

Server:
e2ac64ab3495:1
Worker:
25856540

+3m 25.223s Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 4 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 08:54:33

+16m 23.730s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 783 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 783 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+11.616s Processing

Server:
e2ac64ab3495:1
Worker:
25856540

+31.889s Enqueued

Triggered by DelayedJobScheduler

+4ms Scheduled

Retry attempt 3 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 08:34:37

+18m 10.190s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 13 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 13 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+3.354s Processing

Server:
e2ac64ab3495:1
Worker:
68199cd6

+1m 11.664s Enqueued

Triggered by DelayedJobScheduler

+5ms Scheduled

Retry attempt 2 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 08:15:46

+18m 11.097s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 749 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 749 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+7.703s Processing

Server:
e2ac64ab3495:1
Worker:
68199cd6

+37.316s Enqueued

Triggered by DelayedJobScheduler

+9ms Scheduled

Retry attempt 1 of 10: Expected depth to be zero at the end of the JSON …

Enqueue at:
02/24/2026 07:56:14

+16m 25.320s Failed

An exception occurred during performance of the job.

System.Text.Json.JsonReaderException (e2ac64ab3495:1)

Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 759 | BytePositionInLine: 19.

System.Text.Json.JsonReaderException: Expected depth to be zero at the end of the JSON payload. There is an open JSON object or array that should be closed. LineNumber: 759 | BytePositionInLine: 19.
   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
   at System.Text.Json.Utf8JsonReader.Read()
   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
   at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
   at MenuOcr.Api.Application.Services.MenuResultParser.ParseItems(String rawModelOutput) in /src/src/MenuOcr.Api/Application/Services/MenuResultParser.cs:line 24
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseAndValidateAsync(MenuParseJob job, MenuSourceContent sourceContent, Boolean useDefaultModel, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 168
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ParseWithRequestedModelFallbackAsync(MenuParseJob job, MenuSourceContent sourceContent, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 135
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 67
   at MenuOcr.Api.Application.Services.MenuJobProcessor.ProcessAsync(Guid jobId, CancellationToken cancellationToken) in /src/src/MenuOcr.Api/Application/Services/MenuJobProcessor.cs:line 124
   at MenuOcr.Api.Background.MenuParsingBackgroundJob.ProcessAsync(Guid jobId) in /src/src/MenuOcr.Api/Background/MenuParsingBackgroundJob.cs:line 11
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+4.933s Processing

Server:
e2ac64ab3495:1
Worker:
68199cd6

-59d 17h 33m Enqueued

04/25/2026 01:13:12 Created