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

Bug: Distance data not sending correctly from fitbit api, (estimated start day ~Oct 1)

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 Answer
0 Votes
4 REPLIES 4
Best Answer
0 Votes

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

Hi @Hills123 

Welcome to the community!

Regarding your issue, I have forwarded it to our internal team for investigation. We will get back to you as soon as we have an update.

Best Answer
0 Votes

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