Page MenuHomePhabricator

Intermittent rate limiting at hackathon-northwestern-europe-2026
Closed, ResolvedPublicBUG REPORT

Description

We're working with bots and we hit rate limits

WARNING: Http response status 429
WARNING: Non-JSON response received from server wikipedia:nl for url
https://nl.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=600&format=json
The server may be down.
Status code: 429
User agent: BotMultichill/login (wikipedia:nl; User:BotMultichill) Pywikibot/11.1.0.dev1 (g20284) Python/3.9.5.final.0 requests/2.32.5

In private opening of https://www.wikidata.org/w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Cratelimits%7Crights&formatversion=2&maxlag=600&format=json

You are making too many requests.
Please reduce your request rate or contact <bot-traffic@wikimedia.org>.

Managed to reproduce on multiple laptops with multiple users.

Range is 94.142.215.192 - 94.142.215.223 for Rozet ( https://apps.db.ripe.net/db-web-ui/query?searchtext=94.142.215.207 )

Event Timeline

AIUI the username in the user-agent should give the bot its own rate limiting bucket, and I don't see any sampled hits for that in Logstash suggesting that it alone is low enough volume. So is something up with the rate limiting rules in rest-gateway?

Just to confirm that we are looking into this. Apologies for the inconvenience.

Change #1252658 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[operations/deployment-charts@master] rest-gateway: handle trust level C with invalid token.

https://gerrit.wikimedia.org/r/1252658

matmarex subscribed.

We've survived the hackathon, so I think this can be closed. T420106 exists for the (probable) underlying issue.