Failed to deserialize JSON payload as TimeTickerEntity #843
Unanswered
geetha-priya-rn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi All,
I have webapi setup to use tickerQ with redis storage. I am running 10.x version of TcikerQ and running in .Net 10
When I add a job I am using
var result = await _scheduler.AddAsync( new TimeTickerEntity
{
Function = request.JobName,
ExecutionTime = request.ExecutionTime.AddMinutes( 1 ),
Request = TickerHelper.CreateTickerRequest( "Optional metadata" ),
Children = new List( )
} );
But getting error as below and job is not picked up for execution. Any advice will be highly aprreciated.
TickerQ.Caching.StackExchangeRedis.Infrastructure.TickerRedisPersistenceProvider[0]
Failed to deserialize JSON payload as TimeTickerEntity.
System.Text.Json.JsonException: The JSON value could not be converted to System.Collections.Generic.ICollection
1[TickerQ.Utilities.Entities.TimeTickerEntity]. Path: $.Children | LineNumber: 0 | BytePositionInLine: 186. at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, TCollection& value)at System.Text.Json.Serialization.JsonConverter
1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue) at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)at System.Text.Json.Serialization.Converters.ObjectDefaultConverter
1.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, Boolean& isPopulatedValue)at System.Text.Json.Serialization.JsonConverter
1.ReadCore(Utf8JsonReader& reader, T& value, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.Metadata.JsonTypeInfo1.Deserialize(Utf8JsonReader& reader, ReadStack& state)at System.Text.Json.Serialization.Metadata.JsonTypeInfo
1.DeserializeAsObject(Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.JsonSerializer.ReadFromSpanAsObject(ReadOnlySpan1 utf8Json, JsonTypeInfo jsonTypeInfo, Nullable1 actualByteCount) at System.Text.Json.JsonSerializer.ReadFromSpanAsObject(ReadOnlySpan1 json, JsonTypeInfo jsonTypeInfo)at System.Text.Json.JsonSerializer.Deserialize(String json, JsonTypeInfo jsonTypeInfo)
at TickerQ.Caching.StackExchangeRedis.Helpers.RedisSerializer.DeserializeOrNull[T](String json)
All reactions