croptool icon indicating copy to clipboard operation
croptool copied to clipboard

Slim application error

Open Seudo3 opened this issue 1 year ago • 0 comments

When calling CropTool on this file, I get a HTTP 500 error when Firefox tries to load https://croptool.toolforge.org/api/file/info?page=1&site=commons.wikimedia.org&title=Gautier - Isoline et la Fleur Serpent, Charavay frères, 1882.djvu. Here is part of the output in the Firefox inspector (I don't have this problem with other documents):

Response headers:

HTTP/2 500 Internal Server Error
via: proxy A
date: Wed, 21 Feb 2024 08:42:14 GMT
pragma: no-cache
server: nginx/1.14.2
expires: Thu, 19 Nov 1981 08:52:00 GMT
content-type: application/json
cache-control: no-store, no-cache, must-revalidate
x-clacks-overhead: GNU Terry Pratchett
permissions-policy: browsing-topics=()
strict-transport-security: max-age=31622400
content-security-policy-report-only: default-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: mediastream: *.toolforge.org wikibooks.org *.wikibooks.org wikidata.org *.wikidata.org wikimedia.org *.wikimedia.org wikinews.org *.wikinews.org wikipedia.org *.wikipedia.org wikiquote.org *.wikiquote.org wikisource.org *.wikisource.org wikiversity.org *.wikiversity.org wikivoyage.org *.wikivoyage.org wiktionary.org *.wiktionary.org *.wmcloud.org *.wmflabs.org wikimediafoundation.org mediawiki.org *.mediawiki.org wss://croptool.toolforge.org; report-uri https://csp-report.toolforge.org/collect;
X-Firefox-Spdy: h2

Response contents:

{
    "message": "Slim Application Error",
    "exception": [
        {
            "type": "pastuhov\\Command\\CommandException",
            "code": 0,
            "message": "Command \"convert '/workspace/public_html/files/7a84bdb41903197518f01cf0907638afe0223cac.djvu.page1.jpg.tiff' '/workspace/public_html/files/7a84bdb41903197518f01cf0907638afe0223cac.djvu.page1.jpg' 2>&1\" exited with code 137: Killed",
            "file": "/workspace/vendor/pastuhov/php-exec-command/src/Command.php",
            "line": 45
        }
    ]
}

Seudo3 avatar Feb 21 '24 08:02 Seudo3