Wikipedia API returns 503 for one specific search (OOM)
Open, NormalPublic

Description

API request of form http://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrsearch=Samuel%20Paley%20Park%20New%20York&gsrnamespace=6&gsrlimit=50&prop=imageinfo&iiprop=url%7Cdimensions%7Csize%7Ccanonicaltitle%7Ctimestamp%7Cextmetadata&iiurlheight=200&iiextmetadatafilter=License%7CLicenseShortName%7CLicenseUrl%7CArtist%7CImageDescription%7CGPSLatitude%7CGPSLongitude returns 503, Service Unavailable although changin the query string in gsrsearch by only one letter fixes it - adding or deleting any character to Samuel%20Paley%20Park%20New%20York works.

Removing prop=imageinfo seems to work as well.

JanJakesTripomatic updated the task description. (Show Details)
JanJakesTripomatic raised the priority of this task from to Normal.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 16 2015, 4:36 PM
JanJakesTripomatic set Security to None.
JanJakesTripomatic updated the task description. (Show Details)
Krenair added a subscriber: Krenair.
Aklapper raised the priority of this task from Normal to Needs Triage.Mar 17 2015, 12:51 PM

(Setting task priority back to initial 'Needs triage', see Setting task priorities.)

Added API tag. I wonder if its choking on the interwiki results.

Anomie added a subscriber: Anomie.Mar 17 2015, 8:09 PM

Nothing to do with search, it happens if you take the 35 titles returned and do api.php?action=query&prop=imageinfo&iiprop=&titles=...

At the moment it's looking like an OOM of some sort, but I haven't finished tracking it down yet.

I wonder if its related to T89918 ?

Yeah, it's an OOM. It happens on testwiki too, so I was able to pull this from testwiki.log on fluorine:

[error] [72b2ed4c] /w/api.php?format=jsonfm&action=query&prop=imageinfo&iiprop=&titles=File:Jewish%20Encyclopedia%20Volume%209.pdf|File:Jewish%20Encyclopedia%20Volume%2012.pdf|File:Jewish%20Encyclopedia%20Volume%201.pdf|File:Jewish%20Encyclopedia%20Volume%204.pdf|File:Scientific%20American%20-%20Series%201%20-%20Volume%20011%20-%20Issue%2040.pdf|File:Redbook-1927-1928%20(42GA).pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%202.pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%208.pdf|File:Scientific%20American%20-%20Series%201%20-%20Volume%20004%20-%20Issue%2007.pdf|File:American%20Church%20History%20Series%20Volume%2010.pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%207.pdf|File:Jewish%20Encyclopedia%20Volume%207.pdf|File:Redbook-1983-1984%20(70GA).pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%201.pdf|File:John%20Fortescue,%20The%20Governance%20of%20England%20(Plummer%20ed,%201885).pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%204.pdf|File:John%20Fortescue%20(Andrew%20Amos,%20ed.),%20De%20Laudibus%20Legum%20Angli%C3%A6%20%E2%80%93%20The%20Translation%20into%20English%20Published%20A.D.%20MDCCLXXV%20(1825).pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%205.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%202.pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%203.pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%2011.pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%203%20-%20Volume%206.pdf|File:A%20Dictionary%20of%20the%20Bible%20Volume%203.pdf|File:A%20Dictionary%20of%20the%20Bible%20Volume%201.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2035.pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%201.pdf|File:Dictionary%20of%20the%20Apostolic%20Church%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%201%20-%20Volume%203.pdf|File:All%20the%20Year%20Round%20-%20Series%203%20-%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2038.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2013.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%206.pdf|File:A%20Dictionary%20of%20Christ%20and%20the%20Gospels%20Volume%202.pdf|File:A%20Dictionary%20of%20Christ%20and%20the%20Gospels%20Volume%201.pdf   ErrorException from line 183 of /srv/mediawiki/php-1.25wmf21/includes/db/DatabaseMysqli.php: PHP Fatal: request has exceeded memory limit
#0 (): MWExceptionHandler::handleError()
#1 {main}
[error] [2c55174e] /w/api.php?format=jsonfm&action=query&prop=imageinfo&iiprop=&titles=File:Jewish%20Encyclopedia%20Volume%209.pdf|File:Jewish%20Encyclopedia%20Volume%2012.pdf|File:Jewish%20Encyclopedia%20Volume%201.pdf|File:Jewish%20Encyclopedia%20Volume%204.pdf|File:Scientific%20American%20-%20Series%201%20-%20Volume%20011%20-%20Issue%2040.pdf|File:Redbook-1927-1928%20(42GA).pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%202.pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%208.pdf|File:Scientific%20American%20-%20Series%201%20-%20Volume%20004%20-%20Issue%2007.pdf|File:American%20Church%20History%20Series%20Volume%2010.pdf|File:Annals%20of%20the%20American%20Pulpit%20Volume%207.pdf|File:Jewish%20Encyclopedia%20Volume%207.pdf|File:Redbook-1983-1984%20(70GA).pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%201.pdf|File:John%20Fortescue,%20The%20Governance%20of%20England%20(Plummer%20ed,%201885).pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%204.pdf|File:John%20Fortescue%20(Andrew%20Amos,%20ed.),%20De%20Laudibus%20Legum%20Angli%C3%A6%20%E2%80%93%20The%20Translation%20into%20English%20Published%20A.D.%20MDCCLXXV%20(1825).pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%205.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%202.pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%203.pdf|File:Encyclopedia%20of%20Religion%20and%20Ethics%20Volume%2011.pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%203%20-%20Volume%206.pdf|File:A%20Dictionary%20of%20the%20Bible%20Volume%203.pdf|File:A%20Dictionary%20of%20the%20Bible%20Volume%201.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2035.pdf|File:The%20International%20Standard%20Bible%20Encyclopedia%20Volume%201.pdf|File:Dictionary%20of%20the%20Apostolic%20Church%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%201%20-%20Volume%203.pdf|File:All%20the%20Year%20Round%20-%20Series%203%20-%20Volume%202.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2038.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%2013.pdf|File:All%20the%20Year%20Round%20-%20Series%202%20-%20Volume%206.pdf|File:A%20Dictionary%20of%20Christ%20and%20the%20Gospels%20Volume%202.pdf|File:A%20Dictionary%20of%20Christ%20and%20the%20Gospels%20Volume%201.pdf   ErrorException from line 257 of /srv/mediawiki/php-1.25wmf21/includes/exception/MWExceptionHandler.php: Fatal Error: request has exceeded memory limit
#0 (): MWExceptionHandler::handleFatalError()
#1 {main}

I wonder if its related to T89918 ?

There's not large output going on here, at least not when you specify "iiprop=".

Got it. I suppose its just running PDF stuff.

Aklapper renamed this task from Wikipedia API returns 503 for one specific search to Wikipedia API returns 503 for one specific search (OOM).Mar 18 2015, 11:00 AM
Aklapper triaged this task as Normal priority.