Page MenuHomePhabricator

HTTP 429 error for all thumbnail sizes for 65MB TIFF file on Commons, due to libvips
Open, Needs TriagePublic

Event Timeline

Yann created this task.Mar 28 2019, 10:06 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 28 2019, 10:06 PM
Aklapper renamed this task from Thumbnail error for TIFF file to HTTP 429 error for all thumbnail sizes for 65MB TIFF file on Commons.Mar 29 2019, 9:00 AM
Aklapper added a project: Thumbor.

Thumbnails 🡒 Thumbor

Sometimes it shows a 500 internal server error instead of 429.

Request from x.x.x.x via cp1076 cp1076, Varnish XID 37636667
Error: 500, Internal Server Error at Tue, 02 Apr 2019 18:56:11 GMT

Gilles added a subscriber: Gilles.Apr 2 2019, 8:13 PM

It's an error coming from vips, about an ICC profile this file contains:

CommandError: (['/usr/bin/vips', 'shrink', '/srv/thumbor/tmp/thumbor@8818/tmpE_GnDj', '/srv/thumbor/tmp/thumbor@8818/tmpQUoG4w/vips_result.png', '20', '20'], '', 'vipspng: profile \'icc\': 0h: PCS illuminant is not D50\nvips2png: unable to write "/srv/thumbor/tmp/thumbor@8818/tmpQUoG4w/vips_result.png"\n', 1)

This seems relevant: https://github.com/libvips/libvips/issues/1248

It does sound like the image could be tweaked (eg. convert to a different ICC profile) to avoid this, though.

Aklapper renamed this task from HTTP 429 error for all thumbnail sizes for 65MB TIFF file on Commons to HTTP 429 error for all thumbnail sizes for 65MB TIFF file on Commons, due to libvips.Mon, May 27, 9:22 AM
Aklapper added a project: Upstream.