You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
I am on MVC 6.0.0-beta8 and I had a JSON deserialization failure. It didn't log any errors but instead it just didn't bind anything and populated the model state. This is the response I had:
51
{"startedAt":["The input was not valid."],"endedAt":["The input was not valid."]}
0
When I tried the same deserialization in isolation, I got the below error from JsonConvert.DeserializeObject<T>:
An unhandled exception of type 'NodaTime.Utility.InvalidNodaDataException' occurred in Newtonsoft.Json.dll
I would expect to see this as a Debug level log so that I wouldn't need to dig deep to see what is going wrong. Would be also useful to log more info along with the error like what is the value, etc.
The text was updated successfully, but these errors were encountered:
For people who are interested in the solution to this error: setting serializerSettings.DateParseHandling to DateParseHandling.None solves the problem.
I am on MVC 6.0.0-beta8 and I had a JSON deserialization failure. It didn't log any errors but instead it just didn't bind anything and populated the model state. This is the response I had:
When I tried the same deserialization in isolation, I got the below error from
JsonConvert.DeserializeObject<T>
:I would expect to see this as a Debug level log so that I wouldn't need to dig deep to see what is going wrong. Would be also useful to log more info along with the error like what is the value, etc.
The text was updated successfully, but these errors were encountered: