07-08-2015 07:37
07-08-2015 07:37
I am getting 429 errors for 5 of the 885 users I have in my system that I am attempting to get workout data for the past 14 days.
I make the following calls as part of the process and the process attempts to update Fitbit data every 30 minutes to an hour.
1. /1/user/-/profile.xml
2. /1/user/-/activities/date/YYYY-M-D.xml where YYYY is the four digit year, M is the 1 or 2 digit month and D is the 1 or 2 digit day.
The users are failing in the first call to get the user profile and returning the 429 error which doesn't make any sense since I can get data for the other 880 users without triggering a 429 error and I would be making at most 15 calls at a time (1 user profile API call and 14 activity date API calls).
Any help would be greatly appreciated.
Thanks,
Chris
Answered! Go to the Best Answer.
07-08-2015 08:48
07-08-2015 08:48
Turns out it was a bug in my code dealing with localization of time from UTC, so the code ended up calling the API for the same day over and over again until the rate limit was reached for those 5 users.
07-08-2015 08:48
07-08-2015 08:48
Turns out it was a bug in my code dealing with localization of time from UTC, so the code ended up calling the API for the same day over and over again until the rate limit was reached for those 5 users.