akeneo-csharp icon indicating copy to clipboard operation
akeneo-csharp copied to clipboard

Serialization error for a metric type containing null

Open denhul opened this issue 7 years ago • 1 comments

When requesting "all" products via the GetAllAsync method, the method doesn't respond anymore after 2 requests per 100 items or after 13 requests per 10 items

denhul avatar Feb 03 '19 14:02 denhul

@pardahlman it seems that the serialization to JSON can't handle null values for a metric type

Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'System.Single'. Path 'amount', line 1, position 1396. ---> System.InvalidCastException: Null object cannot be converted to a value type.

image

denhul avatar Feb 13 '19 10:02 denhul