Page MenuHomePhabricator

API is returning 500 status code
Open, Needs TriagePublic

Description

The API is always returning a 500 status code when it hits the following URL: https://commons.wikimedia.org/w/api.php?list=allimages&ailimit=max&action=query&continue=-||&aistart=20180216000000&aiend=20180216235959&aisort=timestamp&aidir=newer&aiprop=user|sha1|size|dimensions|mime|timestamp|comment|metadata&aicontinue=20180216045510|Этнографическое_обозрение%2C_кн._072-073._%281907_№1%2C2%29.pdf.

The bot has run a query similar to this for several years, so it's probably a data issue (e.g. lots of files with large metadata). I feel like something is misconfigured on Wikimedia's end or on my end. Any help would be appreciated; thanks.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
ResolvedJdlrobson
OpenFeatureNone
OpenFeatureNone
OpenNone
Resolvedcscott
Duplicatecscott
OpenFeatureNone
OpenFeatureNone
OpenNone
OpenNone
OpenNone
ResolvedUmherirrender
DuplicateNone
OpenNone
DeclinedNone
OpenBUG REPORTNone
OpenNone
OpenFeatureNone
OpenFeatureNone
OpenNone
OpenNone

Event Timeline

It only happens when I'm logged in as administrator or as a bot. Both of these have a higher API limits than the average users.

It only happens when I'm logged in as administrator or as a bot. Both of these have a higher API limits than the average users.

What are those limits? Any link to the docs, please?

What is the complete error message (please exclude your personal IP though)?

I've attached the HAR generated by Chrome. I've have blanked everything that looked like session or location data.

Thanks. Tentatively guessing the component (might be wrong).

This is probably the same issue as in T55663: Getting the referring pages takes up too much memory (due to included image metadata): too many small object in the metadata aren't caught by the usual API memory limiting mechanism, until they add up enough to exceed PHP's memory limit.