question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker deploy DateTimeOffset convert error

See original GitHub issue

I am deployed on docker. But, I add organization response 500. I see the log, is a DateTime convert error.

Release: 7.0.0 ES: 7.9.0

[12:41:42 ERR] Unable to deserialize value [{"document":{"id":"5f682efcf232be0001855f0a","name":"ERP","plan_id":"EX_UNLIMITED","plan_name":"Unlimited","plan_description":"Unlimited","billing_change_date":"2020-09-21T04:41:32.7450812Z","billing_changed_by_user_id":"5f682eusage":[{"date":"2020-09-01T00:00:00Z","total":0,"blocked":0,"limit":-1,"too_big":0}],"last_event_date_utc":"0001-01-01T00:00:00","created_utc":"2020-09-21T04:41:32.7458321Z","updated_utc":"2020-09-21T04:41:32.7458321Z","is_deleted":false},"score":0.0,"id":"5f682efcf232bull]], Foundatio.Repositories, Version=7.0.0.0, Culture=neutral, PublicKeyToken=fc181f0a46f65747]]
Newtonsoft.Json.JsonReaderException: Could not convert string to DateTimeOffset: 0001-01-01T00:00:00. Path 'last_event_date_utc', line 1, position 573.
   at Newtonsoft.Json.JsonReader.ReadDateTimeOffsetString(String s)
   at Newtonsoft.Json.JsonReader.ReadAsDateTimeOffset()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
   at Newtonsoft.Json.Linq.JToken.ToObject[T](JsonSerializer jsonSerializer)
   at Exceptionless.Serializer.DataObjectConverter`1.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in /app/src/Exceptionless.Core/Serialization/DataObjectConverter.cs:line 64
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Foundatio.Serializer.JsonNetSerializer.Deserialize(Stream inputStream, Type objectType)
   at Foundatio.Serializer.SerializerExtensions.Deserialize[T](ISerializer serializer, Byte[] data)
   at Foundatio.Redis.RedisValueExtensions.ToValueOfType[T](RedisValue redisValue, ISerializer serializer)
   at Foundatio.Caching.RedisCacheClient.RedisValueToCacheValue[T](RedisValue redisValue)


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Nonobiscommented, Oct 18, 2020

@niemyjski : Working perfectly thanks you !

1reaction
niemyjskicommented, Oct 18, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Running python script inside Docker container wrong ...
I'm running a script inside a Docker container (python:3.6) and it shows me the wrong time in the logs. When using the following...
Read more >
About time incorrect of docker image about aspnet-6 #62545
Hello: I ran asp.net core application in docker container , used version of .Net 6 for mcr.microsoft.com/dotnet/aspnet:6.0-focal mirror ...
Read more >
Docker Container time & timezone (will not reflect changes)
I've created some containers from the basic ubuntu:trusty image, and when I run it and request 'date', I get UTC time. For awhile...
Read more >
Amazon CloudWatch Logs logging driver
Log driver returns an error by default if the log group does not exist. However, you can set the awslogs-create-group to true to...
Read more >
Docker | Mendix Documentation
Describes how to deploy using a Docker image.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found