06-02-2021 01:00
06-02-2021 01:00
Hi, i'm having this error:
Unhandled rejection StatusCodeError: 504 - "Gateway Timeout".
Seems to happen with this path:
https://api.fitbit.com/1/user/-/activities/activityCalories/data/today/1y.json
Is there a solution?
06-02-2021 14:03
06-02-2021 14:03
Hi @RaulAlvarez
Typically with timeout errors, you should wait a few minutes and try again. Have you tried executing the endpoint again to see if the data is returned?
Gordon
06-04-2021 00:52
06-04-2021 00:52
Hi @Gordon-C,
I tried several times, I having this error for some weeks.
06-04-2021 12:33
06-04-2021 12:33
Hi @RaulAlvarez
I've been able to research this problem and determined that the resource "activityCalories" only supports a period length of 1 month. We have an open ticket to provide a better error message than the "504 Timeout" or "TypeError: Origin https://dev.fitbit.com is not allowed by Access-Control-Allow-Origin".
Gordon