SnippetHighlighter.HighlightAsync

// Id: #3328
using Hangfire.Highlighter.Jobs;

var snippetHighlighter = Activate<SnippetHighlighter>();
await snippetHighlighter.HighlightAsync(1141);

Parameters

CurrentCulture
"en-US"
RetryCount
10

Continuations

Id Condition State Job Created
#3329 OnlyOnSucceededState Awaiting SnippetHighlighter.SendToSubscribers 11/6/2024 9:48:45 AM

State

11/6/2024 2:16:57 PM (+1.676s) Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+14ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+1h 51m Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 10 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 2:16:48 PM

+1.786s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+17ms Processing

Server:
dw1sdwk00068f:2436
Worker:
88524fc6

+1h 9m Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 9 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 12:25:45 PM

+1.553s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+13ms Processing

Server:
dw1sdwk00068f:2436
Worker:
c617fe9c

+41m 30.017s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 8 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 11:16:08 AM

+1.563s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+17ms Processing

Server:
dw1sdwk00068f:2436
Worker:
ed81ebfb

+22m 44.153s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 7 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 10:34:42 AM

+1.657s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+13ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+12m 14.084s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 6 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 10:11:50 AM

+1.503s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+17ms Processing

Server:
dw1sdwk00068f:2436
Worker:
88524fc6

+4m 58.560s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 5 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 9:59:37 AM

+1.673s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+17ms Processing

Server:
dw1sdwk00068f:2436
Worker:
c617fe9c

+2m 43.380s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 4 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 9:54:41 AM

+1.690s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+13ms Processing

Server:
dw1sdwk00068f:2436
Worker:
ed81ebfb

+1m 43.317s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 3 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 9:51:50 AM

+1.780s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+20ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+58.240s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

Retry attempt 2 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 9:50:00 AM

+1.800s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+30ms Processing

Server:
dw1sdwk00068f:2436
Worker:
88524fc6

+26.886s Enqueued

Triggered by DelayedJobScheduler

+17ms Scheduled

Retry attempt 1 of 10: Invalid URI: The Uri string is too long.

Enqueue at:
11/6/2024 9:49:13 AM

+2.157s Failed

An exception occurred during performance of the job.

System.UriFormatException (dw1sdwk00068f:2436)

Invalid URI: The Uri string is too long.

System.UriFormatException: Invalid URI: The Uri string is too long.
   at System.UriHelper.EscapeString(String input, Int32 start, Int32 end, Char[] dest, Int32& destPos, Boolean isUriString, Char force1, Char force2, Char rsvd)
   at System.Uri.EscapeDataString(String stringToEscape)
   at System.Net.Http.FormUrlEncodedContent.Encode(String data)
   at System.Net.Http.FormUrlEncodedContent.GetContentByteArray(IEnumerable`1 nameValueCollection)
   at System.Net.Http.FormUrlEncodedContent..ctor(IEnumerable`1 nameValueCollection)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightSourceAsync>d__10.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 94
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Hangfire.Highlighter.Jobs.SnippetHighlighter.<HighlightAsync>d__6.MoveNext() in C:\projects\hangfire-highlighter\Hangfire.Highlighter\Jobs\SnippetHighlighter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+250ms Processing

Server:
dw1sdwk00068f:2436
Worker:
c617fe9c

+ <1ms Enqueued

11/6/2024 9:48:45 AM Created