Skip to content
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

Bad Serialization for MediaStatus #16

Closed
majora2007 opened this issue Jun 13, 2023 · 1 comment
Closed

Bad Serialization for MediaStatus #16

majora2007 opened this issue Jun 13, 2023 · 1 comment

Comments

@majora2007
Copy link
Contributor

I'm seeing occasionally some data results in null MediaStatus and thus the library throws a serialization exception.

In this case, I was searching for "haru yo, koi" which caused this issue.

I do see this one entry doesn't have a MediaStatus:
https://anilist.co/manga/164912/Haru-yo-Koi/

An unhandled exception was thrown by the application.
Newtonsoft.Json.JsonSerializationException: Error converting value {null} to type 'AniListNet.Objects.MediaStatus'. Path 'data.Page.media[5].status', line 1, position 7579.

@dentolos19
Copy link
Owner

Sorry! I wasn't able to notice this issue. I fixed it in this commit. I'll push another release this Friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants