Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Serialization error for a metric type containing null #24

Open
denhul opened this issue Feb 3, 2019 · 1 comment
Open

Serialization error for a metric type containing null #24

denhul opened this issue Feb 3, 2019 · 1 comment

Comments

@denhul
Copy link

denhul commented Feb 3, 2019

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
Copy link
Author

denhul commented Feb 13, 2019

@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 denhul changed the title GetAllAsync doesn't respond Serialization error for a metric type containing null Feb 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant