06-19-2023 08:45
06-19-2023 08:45
I am having trouble finding the cause of the error, and would greatly appreciate any advice you could give me if possible.
The following call is executed successfully.
> curl -X GET "https://api.fitbit.com/1/user/-/activities/heart/date/2023(hyphen)06(hyphen)18/7d.json" \
> -H "accept: application/json" \
> -H "authorization: Bearer <token>"
>> {"activities-heart":[{"dateTime":"2023(hyphen)06(hyphen)12","value":{"customHeartRateZones".....
The following call returns a 500 error.
> curl -X GET "https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/2023(hyphen)06(hyphen)18/1d/1min..." \
> -H "accept: application/json" \
> -H "authorization: Bearer <token>"
>> {"errors":[{"errorType":"system","fieldName":"n/a","message":"Internal server error."}]}
*I can't seem to enter a date hyphen, so I'm using (hyphen) instead.
*Uses machine translation.
Answered! Go to the Best Answer.
06-26-2023 00:38
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-26-2023 00:38
Hi @Yogorouza,
Thanks for reporting this, and I'll be happy to take a look.
So that I can investigate, could you please PM me your client id? Also in the meantime, can you retry your request so I can capture it in our error logs? Once I have the info, I'll reach out to you with more information. Thanks!
Best Answer06-26-2023 00:38
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-26-2023 00:38
Hi @Yogorouza,
Thanks for reporting this, and I'll be happy to take a look.
So that I can investigate, could you please PM me your client id? Also in the meantime, can you retry your request so I can capture it in our error logs? Once I have the info, I'll reach out to you with more information. Thanks!
Best Answer