Closed DeepSpace2 closed 6 years ago
Can confirm this issues.
I'll most likely make it return null
in the next version or return a HTTP 204 NO CONTENT
.
Thanks but isn't there a bigger issue here? Why don't we get the same response for all valid requests?
Your request to https://tv-v2.api-fetch.website/movie/tt1469304
is valid. The issue is here is id tt1469304
does not exist in the database and mongoose will just return nothing. You can see the method fired by this route here.
Empty responses are usually returned for imdb_ids that don't exist on popcorn.
But sometimes empty responses are returned for an existing imdb_id, for example tt1469304.
This is reproducible from the docs page (https://popcorntime.api-docs.io/api/movie) and directly from the browser:
https://tv-v2.api-fetch.website/movie/tt1469304