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

Daily activity summary activeScore returning "-1" instead of -1

Some time starting around UTC 29 August 2024, the response received for daily activity summary's activeScore is returning something like this:

 

{
    "goals" : {
        ...
    },
    "summary" : {
        ...
        "activeScore" : "-1",
    },
}

 

Previously, and as seen in the sample response in documentation (https://dev.fitbit.com/build/reference/web-api/activity/get-daily-activity-summary/), it used to return activeScore as a Number, not String - something like this:

 

{
    "goals" : {
        ...
    },
    "summary" : {
        ...
        "activeScore" : -1,
    },
}

 

  Is this an intentional change, or a bug?

Best Answer
4 REPLIES 4
Best Answer
0 Votes

I'm experiencing this too, as well as something potentially related in heart rate zone minutes in the get activities log response: where I'd expect a positive number or zero, I sometimes get the string "-1".

For example:

{
    "activities": [
        {
            [...]
            "heartRateZones": [
                {
                    "minutes": "-1",
                    "caloriesOut": 0.0,
                    "name": "Out of Range",
                    "min": 30,
                    "max": 220,
                    "enabled": true
                },
                [...]
            ],
            "customHeartRateZones": [],
            "activeZoneMinutes": {
                "totalMinutes": 15,
                "minutesInHeartRateZones": [
                    {
                        "minutes": "-1",
                        "zoneName": "Out of Range",
                        "order": 0,
                        "type": "OUT_OF_ZONE",
                        "minuteMultiplier": 0
                    },
                    [...]
                ]
            }
        }
    ]
}

 According to my logs, this started sometime on Aug 28th 2024.

Best Answer
0 Votes

Hi @hi_SG 

Thank you for reporting this problem.   I can reproduce it and will send a ticket to engineering.

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

Thanks Gordon.

We're facing another issue today with invalid format for activitycalories and caloriesbmr, both of which are now also returning a string instead of a number. I'm not sure if there will be any other fields with similar issues. Could we ensure the team resolves the format for all of the fields? Thanks!

Best Answer