New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unstable - Error deserializing item with JSON #4172
Comments
Getting a similar JSON error trying to edit dlna profiles. Exception:-
|
Custom handlers and number convertors are mutually exclusive. |
Fix #4180 |
What do you mean by this? The issue here appears to be that a custom converter for a number type is not doing a check for whether the number payload is written as a number or a string. I left a comment in #4180 that suggests the recommended way to do this. Unless the |
dotnet/runtime/#42239 was referenced as it states in the code the shows the comment "'JsonNumberHandlingAttribute' cannot be placed on a property, field, or type that is handled by a custom converter". The JsonNumberHandling feature is being used in jsOnDefaults.cs |
Was this exception thrown when running your own code? I can't see anything that indicates that. I've looked at the settings in |
This is fixed in master. |
Hello,
I still get the Error, I thought it should be fixed by #MR3951 (#3951). Maybe commit 9ddf550 broke it again?
I get this Error if I try to modify Metadata. Also depending on which fields are filled I get Error responses from server like:
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"|7cead06d-45afd8ac33c5f67a.","errors":{"request":["The request field is required."],"$.ProductionYear":["The JSON value could not be converted to System.Nullable`1[System.Int32]. Path: $.ProductionYear | LineNumber: 0 | BytePositionInLine: 562."]}}
System (please complete the following information):
To Reproduce
The text was updated successfully, but these errors were encountered: