Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

500 status for active-zone-minutes azm endpoint request

ANSWERED

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

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
4 REPLIES 4

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
0 Votes

Hi @fitterbetter 

Can you tell me what your application type setting is set to?  See Application Types.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

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

Best Answer
0 Votes

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.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer