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