Hi.
Parts array is empty in collections endpoint. For example, there are 3 movies in this collection, but this is empty in the API request:
https://www.themoviedb.org/collection/121938
Endpoint: https://api.themoviedb.org/3/collection/121938?api_key=API_KEY&language=en-US
Response:
{
"id":121938,
"name":"The Hobbit Collection",
"overview":"The Hobbit collection is a three-part epic fantasy-adventure film directed and produced by Peter Jackson and based on J. R. R. Tolkien's fantasy novel of the same name. The trilogy of films are set in Middle-earth 60 years before \"The Lord of the Rings\", and will act as a prequel to Jackson's The Lord of the Rings trilogy.",
"poster_path":"/gwHNIXA6YeYsI9XgX4g1UmLDCxo.jpg",
"backdrop_path":"/sLy2GcCPrZcMlfaSSvoGeThWXBA.jpg",
"parts":[]
}
But when I don't send the language parameter, the endpoint works correctly:
Endpoint: https://api.themoviedb.org/3/collection/121938?api_key=API_KEY
Response:
{
"id":121938,
"name":"The Hobbit Collection",
"overview":"The Hobbit collection is a three-part epic fantasy-adventure film directed and produced by Peter Jackson and based on J. R. R. Tolkien's fantasy novel of the same name. The trilogy of films are set in Middle-earth 60 years before \"The Lord of the Rings\", and will act as a prequel to Jackson's The Lord of the Rings trilogy.",
"poster_path":"/gwHNIXA6YeYsI9XgX4g1UmLDCxo.jpg",
"backdrop_path":"/sLy2GcCPrZcMlfaSSvoGeThWXBA.jpg",
"parts":[
{
"original_language":"en",
"original_title":"The Hobbit: An Unexpected Journey",
"poster_path":"/yHA9Fc37VmpUA5UncTxxo3rTGVA.jpg",
"video":false,
"vote_average":7.3,
"overview":"Bilbo Baggins, a hobbit enjoying his quiet life, is swept into an epic quest by Gandalf the Grey and thirteen dwarves who seek to reclaim their mountain home from Smaug, the dragon.",
"release_date":"2012-11-26",
"vote_count":15492,
"adult":false,
"backdrop_path":"/gioXMobK8vbD6bcTsjKYKfgacNt.jpg",
"title":"The Hobbit: An Unexpected Journey",
"genre_ids":[
12,
14,
28
],
"id":49051,
"popularity":116.567
},
{
"original_language":"en",
"original_title":"The Hobbit: The Desolation of Smaug",
"poster_path":"/xQYiXsheRCDBA39DOrmaw1aSpbk.jpg",
"video":false,
"vote_average":7.6,
"overview":"The Dwarves, Bilbo and Gandalf have successfully escaped the Misty Mountains, and Bilbo has gained the One Ring. They all continue their journey to get their gold back from the Dragon, Smaug.",
"id":57158,
"vote_count":10618,
"adult":false,
"backdrop_path":"/bSQjIZO9aJCJBqxGX3Sx2xtujzT.jpg",
"title":"The Hobbit: The Desolation of Smaug",
"release_date":"2013-12-11",
"genre_ids":[
14,
12,
28
],
"popularity":108.034
},
{
"adult":false,
"backdrop_path":"/zn13a7U9eMTJq8sHthe3bCgsVm4.jpg",
"genre_ids":[
28,
12,
14
],
"id":122917,
"original_language":"en",
"original_title":"The Hobbit: The Battle of the Five Armies",
"overview":"Immediately after the events of The Desolation of Smaug, Bilbo and the dwarves try to defend Erebor's mountain of treasure from others who claim it: the men of the ruined Laketown and the elves of Mirkwood. Meanwhile an army of Orcs led by Azog the Defiler is marching on Erebor, fueled by the rise of the dark lord Sauron. Dwarves, elves and men must unite, and the hope for Middle-Earth falls into Bilbo's hands.",
"poster_path":"/xT98tLqatZPQApyRmlPL12LtiWp.jpg",
"release_date":"2014-12-10",
"title":"The Hobbit: The Battle of the Five Armies",
"video":false,
"vote_average":7.3,
"vote_count":11563,
"popularity":168.936
}
]
}
But for this collection the parts array with and without language parameter is empty:
https://www.themoviedb.org/collection/735384
Endpoint: https://api.themoviedb.org/3/collection/735384?api_key=API_KEY&language=en-US
Response:
{
"id":735384,
"name":"Hercule Poirot (Kenneth Branagh) Collection",
"overview":"The adventures of Belgian detective Hercule Poirot, as he solves gruesome murders on various vehicles of transportation.",
"poster_path":"/lSiVxZkNl9kWNQf6tlKzEVN8EtI.jpg",
"backdrop_path":"/edublNCxjewKUYSWw13A4fDiPxt.jpg",
"parts":[]
}
Endpoint: https://api.themoviedb.org/3/collection/735384?api_key=API_KEY
Response:
{
"id":735384,
"name":"Hercule Poirot (Kenneth Branagh) Collection",
"overview":"The adventures of Belgian detective Hercule Poirot, as he solves gruesome murders on various vehicles of transportation.",
"poster_path":"/lSiVxZkNl9kWNQf6tlKzEVN8EtI.jpg",
"backdrop_path":"/edublNCxjewKUYSWw13A4fDiPxt.jpg",
"parts":[]
}
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on January 1, 2022 at 11:05 AM
I've now tested your 2 API Requests.
With and without language.
https://api.themoviedb.org/3/collection/121938?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/collection/121938?api_key=THE_KEY
https://api.themoviedb.org/3/collection/735384?api_key=THE_KEY&language=en-US
https://api.themoviedb.org/3/collection/735384?api_key=THE_KEY
All answers are correct with all parts of the collections.
Maybe it was a temporary problem.
Can you try again and let us know the result?
Reply by sereisoglu
on January 1, 2022 at 11:13 AM
I tried again and I continue to receive the responses I sent above.
Reply by ticao2 š§š· pt-BR
on January 1, 2022 at 11:19 AM
It may now be a Cache problem.
It takes about 8 hours for the Cache to expire.
So, if possible, test in 8 hours and let us know.
Reply by sereisoglu
on January 1, 2022 at 11:24 AM
I had this problem for many collections since yesterday. I think there is a different problem here.
Reply by ticao2 š§š· pt-BR
on January 1, 2022 at 12:27 PM
In this case I believe that only Travis Bell can give a good answer.
Let's wait for him to pass through here.
Reply by jurialmunkey
on January 1, 2022 at 7:02 PM
Can confirm I'm having the same issue with no parts being returned for collections
e.g. /collection/264
Reply by sereisoglu
on January 4, 2022 at 3:38 AM
@ticao2 Still this problem persists.
Reply by SoLoR
on January 4, 2022 at 6:31 AM
Having similar issue: yesterday collection/645 (James Bond) was broken, today is fine yesterday collection/14890 (Bad Boys) was fine, today its broken (empty in api)
This are just two examples. I run update script for this once/month and when i saw mess, i run it once more today manually, this are all changes for CIDs that for most part sholdnt happen:
Reply by Travis Bell
on January 4, 2022 at 1:58 PM
I believe I found the cause of this and just deployed the fix.
Before seeing any changes, you will have to wait for all of the cached items to expire which can take up to 8 hours.
Cheers.
Reply by SoLoR
on January 5, 2022 at 2:24 AM
can confirm its fixed now. thanks!