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.
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.
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.