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

How to get 1 year data of sleep and activities

Hi,

 

I am trying to call the API time sries to get the old data, but after 5 mins or inserting 20 records it throws 505 error(Too Many hits) and I need to wait another 10 to 15 mins inorder to run the service again. It stops again after inserting like 15 to 20 records. Is there any better way to get the data?

 

Appreciate your help.

 

 

Best Answer
0 Votes
2 REPLIES 2

Can anyone help me on this??

Best Answer
0 Votes

The Fitbit API shouldn't respond with a HTTP 505 error. The rate limit error is HTTP 429.

 

You say that you're trying to get a year of sleep and activity data, but also that you're inserting. What exactly is the request that you're making and what is the exact response? Raw HTTP request logging is the best way for us to help you.

Best Answer
0 Votes