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

GetAnimeCharactersStaff(MalId) always returns null #3

Closed
SubZero0 opened this issue Dec 14, 2018 · 3 comments
Closed

GetAnimeCharactersStaff(MalId) always returns null #3

SubZero0 opened this issue Dec 14, 2018 · 3 comments

Comments

@SubZero0
Copy link

It started behaving like this since yesterday.
I'm sure the provided ID is valid (as being an anime) and there's also characters & staff listed at the MAL page. This same ID used to work a few days ago.
Tried with 2 different machines.

@SubZero0
Copy link
Author

SubZero0 commented Dec 14, 2018

I think it was something on the API, it's working again. I won't suppress exceptions anymore.

@Ervie
Copy link
Owner

Ervie commented Dec 14, 2018

Yes, if the returned value is null and you are sure that provided Id is correct, it's worth a try to not surpress warnings. If you receive parsing exception or incorrect endpoint exception, then it's library fault. But sometimes the problem lies with request to API - most of time it should return HttpStatusCode.

Maybe I should add some FAQ/troubleshoting section ReadMe/wiki.

@flashkid10
Copy link

I've been using this in case it returns null
JikanDotNet.Manga Mang = null; while (Mang == null) Mang = await J.GetManga((x as MangaListEntry).MalId);

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

3 participants