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

Unexpected leading zeros in activity source.id at GET 1/user/-/activities/list.json

We received a numeric value starting with zero in activity source id for GET 1/user/-/activities/list.json, see below:

"activities": [
{
"logId": 8068998942047709568,
...
"source": {
"type": "tracker",
"name": "Versa 3",
"id": 092159388124,
...
}
}
]
 
That doesn't look as proper JSON formatting, as number starting with zero would be treated as octal, and JSON doesn't support octals. When parsing this, we get an exception "Invalid numeric value: Leading zeroes not allowed".
 
Please let me know if it can be corrected on your side or if we need to develop some custom workaround on our side.
Best Answer
0 Votes
1 REPLY 1

Hi @martaen 

Thank you for reporting this problem.   I am checking with engineering and will report back to you.

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