03-01-2024 09:42 - edited 03-01-2024 09:43
03-01-2024 09:42 - edited 03-01-2024 09:43
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.
03-04-2024 13:21
03-04-2024 13:21
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.
03-03-2024 07:17
03-03-2024 07:17
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 : )
03-04-2024 08:39
03-04-2024 08:39
Can you tell me what your application type setting is set to? See Application Types.
03-04-2024 09:21
03-04-2024 09:21
Hey 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
03-04-2024 13:21
03-04-2024 13:21
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.