Page MenuHomePhabricator

[FlaggedRevs] Unable to review «Ковальчук, Елена» page in Russian Wikipedia
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error code

  • 62ebd064-6f77-46c5-9851-68c9cf93282a

Steps to replicate the issue (include links if applicable):

What happens? (interface review):
If you click on "Accept Revision" button, browser would make a POST request to https://ru.wikipedia.org/w/rest.php/flaggedrevs/internal/review/Ковальчук,_Елена and get the following HTTP500 response:

{"message":"Error: exception of type UnexpectedValueException","httpCode":500,"httpReason":"Internal Server Error"}

What happens? (API review):
If you'll try to review the page with API by making a request to https://ru.wikipedia.org/w/api.php?action=review&format=json&revid=118792362 , it would fail as well. Pywikibot throws the following exception:

pywikibot.exceptions.APIMWError: internal_api_error_UnexpectedValueException: [62ebd064-6f77-46c5-9851-68c9cf93282a] Caught exception of type UnexpectedValueException
[errorclass: UnexpectedValueException;
 servedby: mw-api-ext.eqiad.main-78789c78f5-dnx47]

Other information:
This page was deleted and later restored, and that might've broken FlaggedRevs.

Event Timeline

I tested the "delete then undelete" hypothesis on localhost and was unable to reproduce. So the steps to reproduce are probably different / more complicated.

Step to reproduce I tried:

  • add ruwiki config to LocalSettings.php
  • as a logged out user, create a page in mainspace
  • log in as sysop
  • add self to the 'editor' group
  • delete the page
  • undelete the page
  • review the page (it worked)
Tacsipacsi changed the subtype of this task from "Bug Report" to "Production Error".Jul 1 2024, 10:01 AM
Tacsipacsi subscribed.

The page mentioned in the description is a redirect, did you try that? I can imagine that something automatically resolves the redirect, leading to a mismatch in the page ID. (Or something automatically resolved the redirect and wrote that into the database in the past two and a half years.)

This could be same. Page was moved and after that it could not be reviewed any more. One exception though when i clicked enough i was able to get old revision reviewed. However, I was not able to review latest versions. Page was this

And request and server answer was this

REQUEST

Request
:method: POST
:scheme: https
:authority: fi.wikipedia.org
:path: /w/rest.php/flaggedrevs/internal/review/Sveitsin_Superliiga
Accept: application/json, text/javascript, */*; q=0.01
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en;q=0.9
Cache-Control: no-cache
Content-Length: 208
Content-Type: application/json
Cookie: cx_campaign_newarticle_hide=1; wikiEditor-0-toolbar-section=advanced; WMF-DP=17a,8c7; NetworkProbeLimit=0.001; centralauth_Session=REDACTED; centralauth_Token=REDACTED; centralauth_User=Zache; WMF-Last-Access-Global=10-May-2025; GeoIP=REDACTED:v4; WMF-Last-Access=10-May-2025; VEE=wikitext; fiwikiSession=REDACTED; fiwikiUserID=4128; fiwikiUserName=Zache; fiwikithanks-thanked=23178148%252C23215116; fiwikimwuser-sessionId=REDACTED; wikEdDiff=1; fiwikircfilters-toplinks-collapsed-state=collapsed; REDACTED
Origin: https://fi.wikipedia.org
Pragma: no-cache
Priority: u=3, i
Referer: https://fi.wikipedia.org/w/index.php?title=Sveitsin_Superliiga&oldid=23179351
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15
X-Requested-With: XMLHttpRequest

**POST PARAMS

{"wpaccuracy":"1","wpReason":"","wpApprove":"1","refid":"0","oldid":"23179351","wpEditToken":"REDACTED+\\","changetime":"","validatedParams":"5985ccb18c71dc82c24af9bd71710dd7"}

Response

{
    "message": "Error: exception of type UnexpectedValueException",
    "httpCode": 500,
    "httpReason": "Internal Server Error"
}

Response headers

Response
:status: 500
Access-Control-Allow-Origin: *
Age: 2
Cache-Control: no-cache
Content-Encoding: gzip
Content-Length: 119
Content-Type: application/json
Date: Sat, 10 May 2025 19:59:56 GMT
nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}
Report-To: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }
Server: mw-api-ext.eqiad.main-7b6f74db69-5bqpz
Server-Timing: cache;desc="pass", host;desc="cp3068"
Strict-Transport-Security: max-age=106384710; includeSubDomains; preload
Vary: x-restbase-compat, Accept-Encoding
x-cache: cp3068 miss, cp3068 pass
x-cache-status: pass
x-client-ip: 2001:14ba:a4bc:ba00:7421:adc2:5244:cbcb
X-Content-Type-Options: nosniff

Screencapture of the errors


Also, workaround was that user did edit to the page so that the last version was not anymore the log event and was able to review the page.