SnippetHighlighter.HighlightAsync

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

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

Parameters

CurrentCulture
"en-US"
RetryCount
10

Continuations

Id Condition State Job Created
#3757 OnlyOnSucceededState Awaiting SnippetHighlighter.SendToSubscribers 1/30/2025 10:49:02 AM

State

1/30/2025 3:23:33 PM (+390ms) 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()

+33ms Processing

Server:
dw1sdwk00068f:2436
Worker:
c617fe9c

+1h 54m Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 3:23:24 PM

+310ms 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()

+34ms Processing

Server:
dw1sdwk00068f:2436
Worker:
88524fc6

+1h 12m Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 1:28:54 PM

+923ms 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()

+57ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+41m 31.780s Enqueued

Triggered by DelayedJobScheduler

+20ms Scheduled

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

Enqueue at:
1/30/2025 12:16:06 PM

+76ms 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()

+24ms Processing

Server:
dw1sdwk00068f:2436
Worker:
ed81ebfb

+22m 30.816s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 11:34:26 AM

+84ms 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:
c617fe9c

+11m 15.206s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 11:11:56 AM

+234ms 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()

+50ms Processing

Server:
dw1sdwk00068f:2436
Worker:
88524fc6

+5m 45.123s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 11:00:42 AM

+127ms 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()

+16ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+2m 59.730s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 10:55:02 AM

+340ms 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()

+50ms Processing

Server:
dw1sdwk00068f:2436
Worker:
ed81ebfb

+1m 14.117s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 10:51:56 AM

+893ms 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:
c617fe9c

+59.990s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 10:50:41 AM

+47ms 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

+47.653s Enqueued

Triggered by DelayedJobScheduler

+ <1ms Scheduled

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

Enqueue at:
1/30/2025 10:49:46 AM

+467ms 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()

+237ms Processing

Server:
dw1sdwk00068f:2436
Worker:
2c0ad34d

+ <1ms Enqueued

1/30/2025 10:49:02 AM Created