-
Notifications
You must be signed in to change notification settings - Fork 10
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
Cannot deserialize BrowseResult (and others) due to no default constructor #4
Comments
Could you add an example method call and the stack trace of the exception? |
System.NotSupportedException This exception was originally thrown at this call stack: |
Thanks. For future reference, it's generally useful to provide the parameter values too - often a bug is specific to a combination of entities. Side note: if it's feasible in your code, I would recommend creating longer-lived Query objects, instead of creating a new one per request, especially if you are likely to have a large volume of requests. |
Thanks @Zastai and noted. Let me know if you need anything else or I could look into it as well if that helps. |
Pushed a fix; could you see whether this resolves your issue? If it does, I'll push a new release package later today. |
That's fixed it, thanks! |
This occurs when calling BrowseArtistReleasesAsync - could this have occurred due to shifting to System.Text.Json? Newtonsoft is much more forgiving in this and a number of other cases. Either a a converter will be needed to create the classes successfully, or default constructors added to all classes that need to support JSON deserialization.
The text was updated successfully, but these errors were encountered: