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.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de apppap
le 2 décembre 2019 à 00h46
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.
Réponse de Travis Bell
le 2 décembre 2019 à 23h46
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.