Hi!
We have a user in our system who was syncing their activities fine until around the beginning of October. We then noticed something really strange with how that data is coming in. I will show two payloads (while obfuscating the userID for privacy)
Here is a date from september, you will notice that the total is the sum of all the other values in the array.
"distances": [
{
"activity": "total",
"distance": 15.331137
},
{
"activity": "tracker",
"distance": 14.5473
},
{
"activity": "sedentaryActive",
"distance": 0
},
{
"activity": "lightlyActive",
"distance": 0.574025
},
{
"activity": "moderatelyActive",
"distance": 0.306128
},
{
"activity": "veryActive",
"distance": 0.866146
},
{
"activity": "loggedActivities",
"distance": 0
}
],
Now here is a date from october. You will notice that the total is 0. This is a value we rely on to get the data for our users and its definitely upsetting to them that we are no longer bringing in correct distance data for them.
"distances": [
{
"activity": "total",
"distance": 0
},
{
"activity": "tracker",
"distance": 11.3068
},
{
"activity": "sedentaryActive",
"distance": 0
},
{
"activity": "lightlyActive",
"distance": 0
},
{
"activity": "moderatelyActive",
"distance": 0
},
{
"activity": "veryActive",
"distance": 0
},
{
"activity": "loggedActivities",
"distance": 0
}
],
Can you explain what happened and if there is an effort to fix it? I've seen other developers bring up this bug as well in the forum.
Best AnswerHere's a link to a post that might indicate a similar issue: https://community.fitbit.com/t5/Web-API-Development/Missing-activity-in-log-list-but-accessible-via-...
Best AnswerHey mate, i have run into this same Fitbit data issue before it started happening around early October too. When I was working on a Nebroo project that synced activity stats, we noticed the total distance field suddenly stopped populating. Turns out Fitbit changed how their API aggregates totals, so it’s no longer auto summing the other values. We fixed it by manually calculating the total from the sub-activities until Fitbit patched it.
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.
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.
Hi @Hills123
Are you still experiencing this issue?
If you are, would be able to provide the entire response from the Get Daily Activity Summary endpoint for the October date?
With all of the distances zero, this might be a case where they didn't wear their device and manually entered an activity.
Best Answer