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

GetMovieAsync returns empty object #235

Closed
gabiionut opened this issue Dec 18, 2017 · 3 comments
Closed

GetMovieAsync returns empty object #235

gabiionut opened this issue Dec 18, 2017 · 3 comments
Labels

Comments

@gabiionut
Copy link

When I used GetMovieAsync I noticed that for some movie IDs it returns an empty object.
This is an example: var movie = client.GetMovieAsync(230).Result;
Is this methond valid only for some movies or what is the problem ?

@LordMike
Copy link
Collaborator

That's entirely true. For that specific ID, TMDb returns HTTP 404 - but we parse it anyways.

@LordMike
Copy link
Collaborator

As a workaround, you can verify that the ID returned is the one you requested - but for now, it's a bug.

@LordMike
Copy link
Collaborator

Fixed in #275 - error handling has been streamlined, see the new ThrowApiExceptions option.

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

No branches or pull requests

2 participants