github-readme-streak-stats: PNG endpoint not working on Heroku

If anyone has ideas on how to fix this server error on Heroku let me know

heroku[router]: at=info method=GET path="/?user=denvercoder1&type=png" host=github-readme-streak-stats.herokuapp.com request_id=57a0d837-7f0a-4edd-b69e-3e24cee3193f fwd="185.191.205.141" dyno=web.1 connect=8ms service=395ms status=500 bytes=315 protocol=https
app[web.1]: [03-Oct-2021 13:02:55 UTC] PHP Fatal error:  Uncaught ImagickException: no decode delegate for this image format `' @ error/blob.c/BlobToImage/353 in /app/src/card.php:325
app[web.1]: Stack trace:
app[web.1]: #0 /app/src/card.php(325): Imagick->readImageBlob()
app[web.1]: #1 /app/src/index.php(70): echoAsPng()
app[web.1]: #2 {main}
app[web.1]:   thrown in /app/src/card.php on line 325
app[web.1]: 10.1.4.157 - - [03/Oct/2021:13:02:55 +0000] "GET /?user=denvercoder1&type=png HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

This is actually a different error!

I may have another thing that we can test. I can force Imagick to interpet the blob as an SVG. Maybe that helps?

Update: It did not solve the issue

Hmm strange. The versions are identical to the one I have running. We can try it with the prepended text I guess!

Oh I’ve seen this error before while I was working on the code, so I may know how to fix it.