Page MenuHomePhabricator

Game: Bug while accepting references
Open, Needs TriagePublic

Description

There appears to be an intermittant issue while attempting to accept reference matches in the game.

Screenshot from 2020-07-15 17-20-34.png (511×1 px, 91 KB)

The issues seems to appear every once in a while with no apparent consistency in behavior. Therefore, reproduction is tricky.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Would be good to get the API response here somehow! :)

Would be good to get the API response here somehow! :)

Is that something that you can do or that @Ferdinand0101 could get from their side, if so how?

I was only able to reproduce again today, here is the API response:

{
    "error": "generic_action failed: {\"action\":\"wbsetreference\",\"statement\":\"Q885643$600DC43A-9031-49A7-B141-2829E78AAC4F\",\"tags\":\"reference-game\",\"snaks\":\"{\\\"P6467\\\":[{\\\"snaktype\\\":\\\"value\\\",\\\"property\\\":\\\"P6467\\\",\\\"datavalue\\\":{\\\"type\\\":\\\"string\\\",\\\"value\\\":\\\"977db39d-5d11-4f51-82bb-181108200c36\\\"}}],\\\"P248\\\":[{\\\"snaktype\\\":\\\"value\\\",\\\"property\\\":\\\"P248\\\",\\\"datavalue\\\":{\\\"value\\\":{\\\"entity-type\\\":\\\"item\\\",\\\"numeric-id\\\":1630304,\\\"id\\\":\\\"Q1630304\\\"},\\\"type\\\":\\\"wikibase-entityid\\\"}}],\\\"P813\\\":[{\\\"snaktype\\\":\\\"value\\\",\\\"property\\\":\\\"P813\\\",\\\"datavalue\\\":{\\\"value\\\":{\\\"time\\\":\\\"+00000002020-05-13T00:00:00Z\\\",\\\"timezone\\\":0,\\\"before\\\":0,\\\"after\\\":0,\\\"precision\\\":11,\\\"calendarmodel\\\":\\\"http:\\\\/\\\\/www.wikidata.org\\\\/entity\\\\/Q1985727\\\"},\\\"type\\\":\\\"time\\\"}}]}\",\"summary\":\"The Distributed Game (73): Reference hunt! #distributed-game\"}/",
    "data": [],
    "error2": "The statement has already a reference with hash fdef35c8a2acebc8a1bb19209974afadc3f67e4d",
    "jle": 0,
    "res":
    {
        "error":
        {
            "code": "modification-failed",
            "info": "The statement has already a reference with hash fdef35c8a2acebc8a1bb19209974afadc3f67e4d",
            "messages":
            [
                {
                    "name": "wikibase-api-modification-failed",
                    "parameters":
                    [
                        "The statement has already a reference with hash fdef35c8a2acebc8a1bb19209974afadc3f67e4d"
                    ],
                    "html":
                    {
                        "*": "The statement has already a reference with hash fdef35c8a2acebc8a1bb19209974afadc3f67e4d"
                    }
                }
            ],
            "*": "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": "mw1342"
    },
    "result": ""
}

Seems like it does have something to do with duplicate matches perhaps related to T253956