Page MenuHomePhabricator

Fatal exception of type "Wikimedia\Assert\PostconditionException" / "invalidtitle" error for extracts API error for title in Pashto Wikipedia
Open, Needs TriagePublic

Description

Hello folks at Wikimedia :)

A fatal occurs on the following request: https://ps.wikipedia.org/?curid=21451

there is also a possibly related problem with the TextExtracts api page in the Pashto that breaks the extracts API. Given the following request

https://ps.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&formatversion=2&pageids=21451

the reply is

{"error":{"code":"invalidtitle","info":"Bad title \"تانبه::لرغونپوهنه\".","docref":"See https://ps.wikipedia.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."},"warnings":{"extracts":{"warnings":"\"exlimit\" was too large for a whole article extracts request, lowered to 1."}},"servedby":"mw1277"}

Keep up the great work, Enrico

Event Timeline

Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptFri, Sep 20, 3:29 PM
Aklapper renamed this task from Broken exctracts API for title in Pashto Wikipedia to "invalidtitle" error for extracts API error for title in Pashto Wikipedia .Fri, Sep 20, 4:28 PM
Jdlrobson added a subscriber: Jdlrobson.

@Ebonetti90
What is the URI of the page with that pageid?
Are you able to use the REST_v1 summary endpoint (which is better supported): https://pt.wikipedia.org/api/rest_v1/#/Page%20content/get_page_summary__title_

Actually I don't know the URI myself, I found it as an error while processing the whole Pashto dump, so I reported it.

Changing the used API wouldn't change the error, this is the reply for getting the page from ID:

MediaWiki internal error.

Original exception: [XYk1sApAMEkAAEOseiAAAACP] 2019-09-23 21:14:24: Fatal exception of type "Wikimedia\Assert\PostconditionException"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
Jdlrobson renamed this task from "invalidtitle" error for extracts API error for title in Pashto Wikipedia to Fatal exception of type "Wikimedia\Assert\PostconditionException" / "invalidtitle" error for extracts API error for title in Pashto Wikipedia .Mon, Sep 23, 9:36 PM
Jdlrobson updated the task description. (Show Details)