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

/activities/activityCalories Timeout

Hi,

 

I've been getting timeout for activityCalories. Is this a known problem?

 

https://api.fitbit.com/1/user/-/activities/activityCalories/date/today/max.json

 

Thanks

Best Answer
0 Votes
6 REPLIES 6
Just tested this endpoint for my account using APIGEE and it works.

It took a while to gather the data but worked. You sure your process is not timing out before you have time to gather the data ?

See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes

Bonxy, thanks for confirming it's slow for you too.

 

For me, this API took about 30 seconds, then returned 504 HTTP error. It doesn't seem normal, because all the other Fitbit API are returning data pretty fast (within 3 seconds)

Best Answer
0 Votes
Your returning the max amount of results.

If you have been on Fitbit for 4 years that's (4x365) days of data so will take time I can imagine.

Try changing the max to 1d,1w,1m,1y for a day, Week, month or years worth of days.
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes

Yes I'm going to change max to something like 1m as the last option.

 

But before that, want to post here to know if there's an API bug, to cause this specific API to be slow. All the other API are very fast with max; also I'm using max only for the very first time of usage, subsequent API usage are incremental. 

Best Answer
Have you tried running the request in apigee and seeing what the loading time is??
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes
Also, looking at related topics it may have been a previous issue??

https://community.fitbit.com/t5/Web-API/Active-Calories-Timeout/m-p/646356#M1226
See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes