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

Rate Limit Header Bug?

ANSWERED

My team is trying to address the Rate Limit errors that we have been receiving. We are trying to prevent reaching the limit by using the “Fitbit-Rate-Limit-Remaining” header.

 

Using Fiddler, we noticed that this value is not being correctly decremented on each subsequent request. However, the Rate Limit error is still received right after a response that might say “Fitbit-Rate-Limit-Remaining: 144”.

 

I am sending some screenshots with our proof.

 

çundefinedundefinedundefinedundefined

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The rate limit headers now are approximate and asynchronously updated. Previously, they were updated on every request. This means that there may be a minor delay in the decrementing the remaining requests. This will result in your application being able to make a few extra requests per user per hour and potentially having a surprise 429 response if you don't track the total number of requests you make yourself.

View best answer in original post

Best Answer
3 REPLIES 3

@FedericoArg Yeah I was able to reproduce the same thing, appears to be a bug. Thanks for bringing it to our attention.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

@AndrewFitbit Did your team make any progress about this issue?

Best Answer
0 Votes

The rate limit headers now are approximate and asynchronously updated. Previously, they were updated on every request. This means that there may be a minor delay in the decrementing the remaining requests. This will result in your application being able to make a few extra requests per user per hour and potentially having a surprise 429 response if you don't track the total number of requests you make yourself.

Best Answer