I am uploading images through the Imgur API (https://apidocs.imgur.com/) but I am getting a 'Too many Request' (err 429) even thought the previous request returned 'X-Ratelimit-Userremaining=1216'. My understanding is that I should be able to do 1216 POST before hitting the rate limit.
Edit:
First request header (success)
X-Ratelimit-Userlimit ,Value : [2000]
X-Post-Rate-Limit-Reset ,Value : [1099]
X-Ratelimit-Clientreset ,Value : [11017]
X-Ratelimit-Userreset ,Value : [3600]
X-Ratelimit-Userremaining ,Value : [1216]
X-Post-Rate-Limit-Remaining ,Value : [1244]
X-Ratelimit-Clientlimit ,Value : [12500]
X-Post-Rate-Limit-Limit ,Value : [1250]
X-Ratelimit-Clientremaining ,Value : [12248]
Content-Type ,Value : [application/json]
Second request headers (fail, rate limit hit):
X-Ratelimit-Userlimit ,Value : [2000]
X-Ratelimit-Clientreset ,Value : [10204]
X-Ratelimit-Userreset ,Value : [3600]
X-Ratelimit-Userremaining ,Value : [0]
X-Ratelimit-Clientlimit ,Value : [12500]
X-Ratelimit-Clientremaining ,Value : [12035]
Content-Type ,Value : [application/vnd.imgur.v1+json]
X-Ratelimit-Userremaining
drops form1216
to0
from one request to another. – Burier