Page MenuHomePhabricator

mediawiki.editattempt_block: '.country_code' should be string
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
'.country_code' should be string
exception.trace
Impact

There have upwards of 74,000 such validation errors in the last 24 hours.

Notes
  1. An example event (with a lot of irrelevant information scrubbed):
{
    "meta": {
        "domain": "…",
        "stream": "mediawiki.editattempt_block",
        "id": "…",
        "dt": "…",
        "request_id": "…"
    },
    "http": {
        "request_headers": {
            "user-agent": "…"
        },
        "client_ip": "…"
    },
    "$schema": "/analytics/mediawiki/editattemptsblocked/1.0.0",
    "block_id": "…",
    "block_type": "range",
    "block_expiry": "…",
    "block_scope": "global",
    "platform": "desktop",
    "interface": "wikieditor",
    "country_code": false,
    "database": "dewiki",
    "page_id": 1234567890,
    "page_namespace": 1234567890,
    "rev_id": 1234567890,
    "performer": {
        "user_id": 0,
        "user_edit_count": 0
    },
    "dt": "…"
}

Event Timeline

phuedx updated the task description. (Show Details)

Change 843506 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/WikimediaEvents@master] Fix editattempt_block country_code not being string

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

Change 843506 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Fix editattempt_block country_code not being string

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

Change 843465 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/WikimediaEvents@wmf/1.40.0-wmf.5] Fix editattempt_block country_code not being string

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

Change 843465 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@wmf/1.40.0-wmf.5] Fix editattempt_block country_code not being string

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

Mentioned in SAL (#wikimedia-operations) [2022-10-17T20:13:36Z] <urbanecm@deploy1002> Started scap: 6762292a4: e320d48c8: 6762292a4: DicsussionTools/WikimediaEvents backports (T315688, T315689, T320938)

Mentioned in SAL (#wikimedia-operations) [2022-10-17T20:18:11Z] <urbanecm@deploy1002> Finished scap: 6762292a4: e320d48c8: 6762292a4: DicsussionTools/WikimediaEvents backports (T315688, T315689, T320938) (duration: 04m 35s)

The validation errors ceased at immediately after deployment: https://logstash.wikimedia.org/goto/401626082acb138d313a0abdcd297520