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

synonyms_chinese array has string quotes outside of array #29

Closed
ThomasAunvik opened this issue Dec 11, 2018 · 1 comment
Closed

synonyms_chinese array has string quotes outside of array #29

ThomasAunvik opened this issue Dec 11, 2018 · 1 comment

Comments

@ThomasAunvik
Copy link

ThomasAunvik commented Dec 11, 2018

I used this image, (Yes i know this is not how its not supposed to be used, but i tested it and i got json errors)

ypixp77o5p321

And the json response is: Json Response

As you can see here that synonyms_chinese is "synonyms_chinese":"[]", not

"synonyms_chinese":[

],

Since i am using Newtonsoft.Json for C# i am deserializing the object, but beacuse of this json value error is, i am getting this error, which is not fixable unless the json api is fixed, or i just ignore using that value at all. or use dynamic values.

Error:
Error converting value "[]" to type 'System.Collections.Generic.List`1[System.String]'. Path 'docs[4].synonyms_chinese', line 1, position 3182.

EDIT:

Got same issue with this picture: (Spoilers sorry)
black clover

Gist and location

You can find my project at: ThomasAunvik/AnimeListBot within class TraceMoe.cs

@soruly
Copy link
Owner

soruly commented Dec 12, 2018

Looking into the database, I've found a total of 163 records with issues.
soruly/anilist-chinese@0ba8ef0

The root cause lies in an admin page (which is not included in this repo) which manage anime titles.
The DB records has been cleaned up and should be OK now.

Thanks for reporting this issue. ;)

@soruly soruly closed this as completed Dec 12, 2018
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