I have been getting the Gateway timed-out error randomly for a while now. I am collecting a lot of data (so with the sleep, the code runs for like 1 hour or so), so each time I try to run it after a while I get the 504 response.
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 apppap
on December 2, 2019 at 12:46 AM
https://api.themoviedb.org/3/movie/4011/credits?api_key=my_key
This call worked well in my browser, but is causing 504 in my code. I am not exceeding my rate limit as I am giving a sleep of 0.25 seconds after each call, even then I am getting this issue.
Reply by Travis Bell
on December 2, 2019 at 11:46 PM
Hi @apppap, are you able to provide a verbose log of the request (full URL, request headers, response headers) of a failing request? I don't see many 504's returned during the day so as far as I can see from an infrastructure point of view, nothing is wrong. A full log entry with a few of these 504's would be helpful.