Hi, I'm trying to generate a session ID, but I get the error below. Any thoughts?
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
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 Travis Bell
on July 26, 2018 at 11:46 AM
I'm doing some database maintenance that is most likely to blame. Retry and you'll likely see it go through.
Reply by payman21
on July 26, 2018 at 11:48 AM
Thanks for prompt response. It was successful. But I'm not sure where I can find the session ID so I could create a list. Can you please advise?
Reply by Travis Bell
on July 26, 2018 at 11:52 AM
You can follow the steps 1-3 under "User Authentication" on this document. There's also a useful document here.
Reply by payman21
on July 26, 2018 at 12:03 PM
Got it. Thanks so much. Is there a way to get a list of all movies with their IDs and similar movies? I'm trying to cross link to MovieLens data to do some analysis for a school project.
Reply by Travis Bell
on July 26, 2018 at 12:07 PM
You can get a list of all the valid IDs from the daily ID exports. Depending on what you mean by "similar movies", the /recommendations method might be best. Otherwise you can construct your own custom query based on things like genres or keywords with the discover method.
Reply by payman21
on July 26, 2018 at 1:49 PM
Thanks again. Why do I get this message when I try to download the list of valid IDs? I copy/paste "http://files.tmdb.org/p/exports/movie_ids_04_28_2017.json.gz" into browser address bar, then I get this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
NoSuchKey
The specified key does not exist. p/exports/movie_ids_04_28_2017.json.gz 881EC3B8A5FDD340 ktrDl1cFA+2L/Wa3rdClemOJDVd1CAZhbQ8GRf4VTz2R88WUdhGc2StOKPHVDpWPZk3HfYVy0CM=Reply by Travis Bell
on July 26, 2018 at 2:00 PM
That file doesn't exist anymore, grab a newer one:
http://files.tmdb.org/p/exports/movie_ids_07_26_2018.json.gz
Reply by payman21
on September 30, 2018 at 3:13 AM
Hi Travis, Is there a new file for valid movie IDs released after 7/26/2018?
Thanks Payman
Reply by Travis Bell
on September 30, 2018 at 11:54 AM
Hi @payman21,
You bet, as per the docs:
They are generated daily.
Reply by payman21
on September 30, 2018 at 2:26 PM
Thanks! But when I click on that link, it directs me to this: https://www.themoviedb.org/
Why is that? Would you be able to post the direct link to the file as you did previously above?
Reply by payman21
on September 30, 2018 at 2:28 PM
Actually, figured it out. thanks again
Reply by Travis Bell
on September 30, 2018 at 2:29 PM
You need to change the date in the file name:
http://files.tmdb.org/p/exports/movie_ids_09_30_2018.json.gz
Reply by payman21
on September 30, 2018 at 3:09 PM
Thanks so much