Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
C:/Users/Filip/Desktop/farmeron/vs-workspace/Farmeron.Farm.ServingLayer/Farmeron.Farm.ServingLayer/bin/Debug/Farmeron.Farm.ServingLayer.exe
Unhandled Exception: Elasticsearch.Net.UnexpectedElasticsearchClientException: U
nexpected token parsing date. Expected String, got Integer. Path 'hits.hits[0]._
source.EventDateLocal', line 1, position 351. ---> Newtonsoft.Json.JsonSerializa
tionException: Unexpected token parsing date. Expected String, got Integer. Path
'hits.hits[0]._source.EventDateLocal', line 1, position 351.
at Newtonsoft.Json.Converters.IsoDateTimeConverter.ReadJson(JsonReader reader
, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConv
ertable(JsonConverter converter, JsonReader reader, Type objectType, Object exis
tingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValu
e(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract
containerContract, JsonProperty containerProperty, JsonReader reader, Object tar
get)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(
Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty m
ember, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(Js
onReader reader, Type objectType, JsonContract contract, JsonProperty member, Js
onContainerContract containerContract, JsonProperty containerMember, Object exis
tingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInte
rnal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty mem
ber, JsonContainerContract containerContract, JsonProperty containerMember, Obje
ct existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValu
e(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract
containerContract, JsonProperty containerProperty, JsonReader reader, Object tar
get)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(
Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty m
ember, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Populate(JsonRe
ader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerProxy.PopulateInternal(JsonRea
der reader, Object target)
at Nest.ConcreteTypeConverter`1.ReadJson(JsonReader reader, Type objectType,
Object existingValue, JsonSerializer serializer) in C:\code\elasticsearch-net\sr
c\Nest\CommonAbstractions\SerializationBehavior\StatefulDeserialization\Concrete
TypeConverter.cs:line 65
at Nest.DefaultHitJsonConverter.ReadJson(JsonReader reader, Type objectType,
Object existingValue, JsonSerializer serializer) in C:\code\elasticsearch-net\sr
c\Nest\CommonAbstractions\SerializationBehavior\StatefulDeserialization\Concrete
TypeConverter.cs:line 30
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConv
ertable(JsonConverter converter, JsonReader reader, Type objectType, Object exis
tingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IL
ist list, JsonReader reader, JsonArrayContract contract, JsonProperty containerP
roperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(Json
Reader reader, Type objectType, JsonContract contract, JsonProperty member, Obje
ct existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInte
rnal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty mem
ber, JsonContainerContract containerContract, JsonProperty containerMember, Obje
ct existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValu
e(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract
containerContract, JsonProperty containerProperty, JsonReader reader, Object tar
get)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(
Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty m
ember, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(Js
onReader reader, Type objectType, JsonContract contract, JsonProperty member, Js
onContainerContract containerContract, JsonProperty containerMember, Object exis
tingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInte
rnal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty mem
ber, JsonContainerContract containerContract, JsonProperty containerMember, Obje
ct existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValu
e(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract
containerContract, JsonProperty containerProperty, JsonReader reader, Object tar
get)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(
Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty m
ember, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(Js
onReader reader, Type objectType, JsonContract contract, JsonProperty member, Js
onContainerContract containerContract, JsonProperty containerMember, Object exis
tingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInte
rnal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty mem
ber, JsonContainerContract containerContract, JsonProperty containerMember, Obje
ct existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(Jso
nReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type
objectType)
at Nest.JsonNetSerializer.Deserialize[T](Stream stream) in C:\code\elasticsea
rch-net\src\Nest\CommonAbstractions\SerializationBehavior\JsonNetSerializer.cs:l
ine 90
at Elasticsearch.Net.ResponseBuilder`1.SetBody(ElasticsearchResponse`1 respon
se, Stream stream) in C:\code\elasticsearch-net\src\Elasticsearch.Net\Transport\
Pipeline\ResponseBuilder.cs:line 82
at Elasticsearch.Net.ResponseBuilder`1.ToResponse() in C:\code\elasticsearch-
net\src\Elasticsearch.Net\Transport\Pipeline\ResponseBuilder.cs:line 28
at Elasticsearch.Net.HttpConnection.Request[TReturn](RequestData requestData)
in C:\code\elasticsearch-net\src\Elasticsearch.Net\Connection\HttpConnection.cs
:line 148
at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TReturn](RequestData r
equestData) in C:\code\elasticsearch-net\src\Elasticsearch.Net\Transport\Pipelin
e\RequestPipeline.cs:line 396
at Elasticsearch.Net.Transport`1.Request[TReturn](HttpMethod method, String p
ath, PostData`1 data, IRequestParameters requestParameters) in C:\code\elasticse
arch-net\src\Elasticsearch.Net\Transport\Transport.cs:line 68
--- End of inner exception stack trace ---
at Elasticsearch.Net.Transport`1.Request[TReturn](HttpMethod method, String p
ath, PostData`1 data, IRequestParameters requestParameters) in C:\code\elasticse
arch-net\src\Elasticsearch.Net\Transport\Transport.cs:line 88
at Elasticsearch.Net.ElasticLowLevelClient.DoRequest[T](HttpMethod method, St
ring path, PostData`1 data, IRequestParameters requestParameters) in C:\code\ela
sticsearch-net\src\Elasticsearch.Net\ElasticLowLevelClient.cs:line 58
at Elasticsearch.Net.ElasticLowLevelClient.Search[T](String index, String typ
e, PostData`1 body, Func`2 requestParameters) in C:\code\elasticsearch-net\src\E
lasticsearch.Net\ElasticLowLevelClient.Generated.cs:line 6838
at Nest.LowLevelDispatch.SearchDispatch[T](IRequest`1 p, PostData`1 body) in
C:\code\elasticsearch-net\src\Nest\_Generated\_LowLevelDispatch.generated.cs:lin
e 2573
at Nest.ElasticClient.<>c__DisplayClass486_0`2.<Search>b__0(ISearchRequest p,
PostData`1 d) in C:\code\elasticsearch-net\src\Nest\Search\Search\ElasticClient
-Search.cs:line 73
at Nest.ElasticClient.Nest.IHighLevelToLowLevelDispatcher.Dispatch[TRequest,T
QueryString,TResponse](TRequest request, Func`3 responseGenerator, Func`3 dispat
ch) in C:\code\elasticsearch-net\src\Nest\ElasticClient.cs:line 56
at Nest.ElasticClient.Nest.IHighLevelToLowLevelDispatcher.Dispatch[TRequest,T
QueryString,TResponse](TRequest request, Func`3 dispatch) in C:\code\elasticsear
ch-net\src\Nest\ElasticClient.cs:line 46
at Nest.ElasticClient.Search[T,TResult](ISearchRequest request) in C:\code\el
asticsearch-net\src\Nest\Search\Search\ElasticClient-Search.cs:line 71
at Nest.ElasticClient.Search[T](ISearchRequest request) in C:\code\elasticsea
rch-net\src\Nest\Search\Search\ElasticClient-Search.cs:line 65
at Farmeron.Farm.ServingLayer.EventMain.Main() in C:\Users\Filip\Desktop\farm
eron\vs-workspace\Farmeron.Farm.ServingLayer\Farmeron.Farm.ServingLayer\Main.cs:
line 34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment