Closed jswigart closed 1 year ago
What framework version do you use?
Ok, I found a link related to the issue. https://learn.microsoft.com/en-us/dotnet/core/compatibility/serialization/5.0/non-public-parameterless-constructors-not-used-for-deserialization
It's fixed with ebd5427.
Unfortunately this app is still dotnet core 3.1
Whenever I get an API error, I get the following exception
Exception thrown: 'System.NotSupportedException' in System.Text.Json.dll Deserialization of reference types without parameterless constructor is not supported. Type 'Modio.Models.ApiError'
The fix for this is simply to add a default constructor to class ApiError