500 status for active-zone-minutes azm endpoint request
# Get AZM Intraday by Date
# Docs: https://dev.fitbit.com/build/reference/web-api/intraday/get-azm-intraday-by-date/
# https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/date/1d/1min.json
I am getting 500 status for active-zone-minutes azm endpoint request.
I can get successfully response in Swagger UI. But not from my Python and OAuth2 authenticated app. I can get other endpoint data. My token is not expired and has following scopes.
"scope": [
"electrocardiogram",
"settings",
"sleep",
"location",
"oxygen_saturation",
"cardio_fitness",
"profile",
"respiratory_rate",
"nutrition",
"temperature",
"social",
"activity",
"weight",
"heartrate"
],
I've seen a few other posts like mine where people cannot get 500 status for active-zone-minutes azm endpoint request.
Is there perhaps undocumented endpoint parameters or maybe another API version for this endpoint?
Thx.
Edit to add:
this is a personal app
Answered! Go to the 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.
Thank you, @fitterbetter
That is a known bug that we are trying to get resolved. Please submit an intraday request at https://dev.fitbit.com/build/reference/web-api/intraday/ and we will provide you with the instructions to workaround the issue.
This issue has persisted over a number of days.
All other endpoints are successfully retrieving data using the same method that fails for this Get AZM Intraday by Date endpoint.
Either I am missing something obvious or there is some quirk with this Get AZM Intraday by Date endpoint.
Does anyone have any ideas to troubleshoot this issue?
Thanks : )
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.
Can you tell me what your application type setting is set to? See Application Types.
Best AnswerHey Gordon,
It's a personal app.
I can get successful responses from all other endoints eg electrocardiogram, sleep, activities, oxygen_saturation, cardio_fitness, heartrate.
But I have only ever had 500 status code responses on both AZM endpoints using same process as with other endpoints.
These are what I am using from the documentation:
https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/date/1d/1min.json
https://api.fitbit.com/1/user/-/activities/active-zone-minutes/date/start_date/end_date/1min.json
I am respecting rate limiting, watching response status codes, etc.
Either the AZM endpoints are restricted to personal apps which would be odd, or the documentation is not up to date?
Thanks
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.
Thank you, @fitterbetter
That is a known bug that we are trying to get resolved. Please submit an intraday request at https://dev.fitbit.com/build/reference/web-api/intraday/ and we will provide you with the instructions to workaround the issue.