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

Intermittent 504 errors when retrieving activities

When calling the following URL for my users I am seeing intermittent http 504 errors:

 

https://api.fitbit.com/1/user/-/activities/list.json?afterDate=[somedate]&offset=0&sort=desc&limit=1...

 

Typically the http 504 is returned after 10 seconds, whereas a successful http 200 response is returned after less than a second.

 

Some GMT timestamps from today (21st Feb 2023) if it helps with debugging:

 

09:44:47 - success

09:46:12 - success

11:15:54 - failed

11:23:36 - failed

11:33:41 - success

Best Answer
0 Votes
3 REPLIES 3

Hi @fetcheveryone 

 

I'm going to send you an email to get more information from you.

 

Gordon

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

Thanks Gordon - I've replied.

Best Answer
0 Votes

Solution: Reducing the limit from 100 to 30 resolved the 504 errors.   While setting the limit to 100 is within the bounds of the endpoint, this not necessary each time you receive a webhook notification.   

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