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?
Best Answer06-02-2021 14:03
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Best Answer06-04-2021 00:52
06-04-2021 00:52
Hi @Gordon-C,
I tried several times, I having this error for some weeks.
Best Answer06-04-2021 12:33
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
Best Answer