Page MenuHomePhabricator

Internal API error while getting backlinks
Closed, ResolvedPublic

Description

MediaWiki API gives me an error while getting backlinks. I was doing multiple queries using query-continue.

http://it.wikipedia.org/w/api.php?action=query&prop=revisions&generator=backlinks&gbltitle=Leopold%20Edelsheim&gblcontinue=0|Leopold_Edelsheim|1291063&rvprop=content&redirects

Exception Caught: Internal error in ApiBase::profileDBIn: must be called while profiling the entire module with profileIn()

I got the gblcontinue from here:
http://it.wikipedia.org/w/api.php?action=query&prop=revisions&generator=backlinks&gbltitle=Leopold%20Edelsheim&rvprop=content&redirects


Version: 1.22.0
Severity: normal

Details

Reference
bz51821

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:59 AM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz51821.
Pietrodn created this task.Jul 22 2013, 4:44 PM

Change 75134 had a related patch set uploaded by Anomie:
Fix exception in ApiPageSet

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

FYI, the cause of the problem is using a generator that produces redirects and including "redirects" in the query.

Change 75134 merged by jenkins-bot:
Fix exception in ApiPageSet

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

Fix is merged. It should be deployed to WMF wikis with 1.22wmf12, see https://www.mediawiki.org/wiki/MediaWiki_1.22/Roadmap for the schedule.