Good morning,
I am currently enjoying my first foray into extracting data from the HSP data feed, and will admit that I am relatively inexperienced in this arena! However, I am having a repeated and frequent issue with the above 'HTTP 502 Bad Gateway' error.
This error occurs after making a serviceMetrics call, but does not seem to occur equally or universally across all the pairs of stations I have thus far requested data for. In fact, from what I can tell, the error seems to be somewhat arbitrary. For example, I have one particular pair of stations that avoids the gateway error far more than any other. Requesting for a year's worth of journeys between these two seems to be more reliable than requesting for a day's worth of data for another pair.
Some preliminary googling I've done of this error seems to suggest this is a server-side issue, but I struggle to understand how this would result in some requests working and others not. As much as I've tried, I simply can't figure out a pattern or common cause to these errors!
I am writing my code in R and using a MacBook if this is of any relevance.
Many thanks in advance for any help offered,
Will.