01-27-2019 13:10
01-27-2019 13:10
I keep getting 504 Gateway time out errors for two specific resource paths: activities/activityCalories and activities/tracker/activityCalories. All others return almost instantly, even when retrieving more than a year of dates. For these other two, all retrievals have a noticeable lag of a couple seconds. They work until the dates are extended back to early June 2018. The specific date that triggers the 504 varies but is typically early June. It looks like similar lags have happened with activityCalories in the past. Is there a solution?
02-05-2019 15:24
02-05-2019 15:24
Hi @JPSnow
Are you still getting the 504 Gateway error messages? If so, would you provide the API endpoint you're executing and is failing?
06-23-2020 08:02
06-23-2020 08:02
06-25-2020 13:06
06-25-2020 13:06
Hi @frogosteve ,
I believe the problem is related to the period length you've supplied in the endpoint. By specifying "1y", the query is timing out. I'll check to see why we are timing out. In the meantime, I'd recommend you reduce the period to a smaller length of time, and execute the endpoint multiple times, adjusting the date each time, to get the year's worth of data. I wasn't able to get 6m to work, but 1m and 3m did.
06-28-2020 17:58
06-28-2020 17:58
@frogosteve Did you get it to work? I updated all my stats this morning and was able to get multiple variables from the endpoint. OTOH, UA is a mess the past few days and I can’t get anything there.
06-29-2020 05:55
06-29-2020 05:55
Hey @JPSnow ,
I just tried your suggestion to get the data out with a restricted time variable. Only one I could get working was 1m and all the others failed with the same Gateway Timeout error. Seems either it's a deprecated feature (maybe) or something funky happening in the API backend. Some data is always better than nothing.
Summary
06-29-2020 06:24
06-29-2020 06:24
Also another quick update all the other activity endpoints work for the 1y variable but the activityCalories doesn't for some reason.
For example Distance will return the years worth of data.
06-29-2020 13:50
06-29-2020 13:50
Hi @frogosteve ... Thank you for the additional information.
06-29-2020 16:42
06-29-2020 16:42
Hi @JPSnow and @frogosteve
I've filed a defect to engineering to investigate the problem. When I have more information, I'll reply to the forum post.
Gordon