Page MenuHomePhabricator

Strange wikibase API error
Closed, ResolvedPublic

Description

I am using my trusty QuickStatements (PHP version) to make edits on Wikidata. Since today, I keep getting error messages on the Wikidata API, like such:

Waiting for mrjwiki: 5.2833333333333 seconds lagged.

The attempted edit does not take place. What's up with that?

Event Timeline

This is the usual response for maxlag=# when delay of sending changes from Wikidata to wikis is too high.

But it's all kinds of wikis that show up. Something with the dispatcher?

Also, I can't edit via the API until this is resolved? Edits via the web interface work. OAuth seems to work as well.

Hmm, I think what tripped my code is that there was no code:'maxlag' in the response?

This is what I get from https://www.wikidata.org/w/api.php?action=query&maxlag=0:

{
    "error": {
        "code": "maxlag",
        "info": "Waiting for enwiki: 5.4 seconds lagged.",
        "host": "enwiki",
        "lag": 5.4,
        "type": "wikibase-dispatching",
        "dispatchLag": 324,
        "*": "See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
    },
    "servedby": "mw1361"
}
Magnus claimed this task.

It appears that the third-party bot framework quietly swallows this and just throws an exception with the "info" field :-(

Hacked around it