Open sgtlaggy opened 1 year ago
For reference, I saw https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/1049#issuecomment-1296198859 and https://github.com/Docile-Alligator/Infinity-For-Reddit/issues/1375#issuecomment-1441776653 but figured this could use a more thorough investigation. I'm not sure if the latter implied this specific issue (and cause) was known and someone was talking with Imgur to figure out a solution.
Checklist
App version
5.4.1
Where did you get the app from
F-Droid
Android version
11, LineageOS (irrelevant)
Device model
No response
First occurred
No response
Steps to reproduce
Example post, link, markdown...
No response
Expected behaviour
No response
Current behaviour
Infinity's Imgur API calls receive the
X-RateLimit-ClientLimit
/X-RateLimit-ClientRemaining
headers, limiting all users collectively to 12500 calls per day and if that is exceeded, as it seems it was last night, more than 5 times the app will not be able to load any more indirect imgur links for the rest of the month. From Imgur API docs:Interestingly, RedReader uses the same authorization header and Imgur API version but only receives the user ratelimit headers, not client headers.
I discovered this through inspection with
mitmproxy
. Sample request and response from each app provided below. I wasn't able to use the same URL as doing so resulted in a cache hit and returned the same response, all headers included and unchanged despite the different client ID.Infinity
Request
Response
RedReader
Request
Response