Page MenuHomePhabricator

Thumbor thumbnail image request fails with error Too Many Requests
Closed, DuplicatePublicBUG REPORT

Description

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

  • Wikipedia page https://en.wikipedia.org/wiki/Attack_at_Fromelles has an image in the infobox.
  • The HTML is: <img src="upload.wikimedia.org/wikipedia/commons/thumb/a/a5/NYTMapNeuveChapelle1915.png/270px-NYTMapNeuveChapelle1915.png" decoding="async" width="270" height="334" class="mw-file-element" srcset="upload.wikimedia.org/wikipedia/commons/thumb/a/a5/NYTMapNeuveChapelle1915.png/405px-NYTMapNeuveChapelle1915.png 1.5x, //upload.wikimedia.org/wikipedia/commons/a/a5/NYTMapNeuveChapelle1915.png 2x" data-file-width="480" data-file-height="593">
  • Try each of these three links; the first two will fail
    • //upload.wikimedia.org/wikipedia/commons/thumb/a/a5/NYTMapNeuveChapelle1915.png/270px-NYTMapNeuveChapelle1915.png
    • //upload.wikimedia.org/wikipedia/commons/thumb/a/a5/NYTMapNeuveChapelle1915.png/405px-NYTMapNeuveChapelle1915.png
  • The third will succeed:
    • //upload.wikimedia.org/wikipedia/commons/a/a5/NYTMapNeuveChapelle1915.png

What happens?:
Error Too Many Requests - Request served via cp5026 cp5026, Varnish XID 574968787 Upstream caches: cp5026 int Error: 429, Too Many Requests at Mon, 24 Mar 2025 04:49:34 GMT

What should have happened instead?:
Image should have been served

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
See discussion as https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&curid=3252662&diff=1282153591&oldid=1282151636

Event Timeline

Hawkeye7 renamed this task from Thumbor imgae request fails with error Too Many Requests to Thumbor thumbnail image request fails with error Too Many Requests.Mar 24 2025, 6:56 PM

(FWIW, I tried it with a new IP to avoid this and I got 500 instead of 429)

The original exists in both datacenters so this ticket is not another instance of T389539: Upload stack fails to upload to both swift clusters or inform uploader of said failure.

root@ms-fe2009:~# swift stat wikipedia-commons-local-public.a5 a/a5/NYTMapNeuveChapelle1915.png
               Account: AUTH_mw
             Container: wikipedia-commons-local-public.a5
                Object: a/a5/NYTMapNeuveChapelle1915.png
          Content Type: image/png
        Content Length: 60014
         Last Modified: Fri, 10 Oct 2014 18:51:33 GMT
                  ETag: db0eaa450332ac52449d760f4ca33a74
       Meta Sha1Base36: 4whk7nnnsbdec1moy6r10l3nlsua6eg
           X-Timestamp: 1412967092.45318
         Accept-Ranges: bytes
            X-Trans-Id: tx796676e3a22c431b8a62e-0067e1e66c
X-Openstack-Request-Id: tx796676e3a22c431b8a62e-0067e1e66c

and

root@ms-fe1009:~# swift stat wikipedia-commons-local-public.a5 a/a5/NYTMapNeuveChapelle1915.png
               Account: AUTH_mw
             Container: wikipedia-commons-local-public.a5
                Object: a/a5/NYTMapNeuveChapelle1915.png
          Content Type: image/png
        Content Length: 60014
         Last Modified: Sun, 06 Oct 2013 11:54:46 GMT
                  ETag: db0eaa450332ac52449d760f4ca33a74
       Meta Sha1Base36: 4whk7nnnsbdec1moy6r10l3nlsua6eg
           X-Timestamp: 1381060485.83424
         Accept-Ranges: bytes
            X-Trans-Id: tx1f14dafa1bfc44b386c43-0067e1e68b
X-Openstack-Request-Id: tx1f14dafa1bfc44b386c43-0067e1e68b
$  display NYTMapNeuveChapelle1915.png
display: IDAT: invalid distance too far back `NYTMapNeuveChapelle1915.png' @ error/png.c/MagickPNGError/1305.

This is T285875: Thumbor fails to render PNG with "Failed to convert image convert: IDAT: invalid distance too far back", returns 429 "Too Many Requests". Fixed with pngfix.