inaturalist / iNaturalistReactNative

Cross-platform version of the iNat mobile app
MIT License
70 stars 24 forks source link

Investigate 429 TooManyRequests problems #2277

Open kueda opened 2 weeks ago

kueda commented 2 weeks ago

Now that we're reporting it correctly, this is our top error. This means the app is making so many requests that we're getting throttled by our own API, which really shouldn't happen, so we need to investigate why we're making so many requests and then cut down on those requests.

This is probably best for someone on staff who has access to the server logs.

2141 is related.

kueda commented 1 week ago

FWIW, one important gotcha I just encountered is that 429 blocking happens in Varnish before any auth happens, so you can't see them if you filter by user ID. You need to look at the user's IPs, and then filter by IP to see them. And then you need to be careful b/c the user was probably connecting via multiple IPs, so you might filter by the most recent and see no 429s.