spacecatninja / craft-imager-x

Image transforms, optimizations and manipulations for your Craft CMS site.
Other
26 stars 16 forks source link

GraphQL : Blurhash results in malformated UTF-8 characters error #112

Closed denisyilmaz closed 2 years ago

denisyilmaz commented 3 years ago

I'm submitting a...

Steps to reproduce

  1. Query for a entry with image asset attached
  2. On image field, use this @imagerTransform: blurhash: url @imagerTransform (width: 100, height: 100, mode: "crop", format: "jpg", return: "blurhash")

Displayed errors, stack trace, relevant logs

{
  "name": "Exception",
  "message": "Malformed UTF-8 characters, possibly incorrectly encoded.",
  "code": 5,
  "type": "yii\\base\\InvalidArgumentException",
  "file": "/var/www/html/vendor/yiisoft/yii2/helpers/BaseJson.php",
  "line": 133,
  "stack-trace": [
    "#0 /var/www/html/vendor/yiisoft/yii2/helpers/BaseJson.php(67): yii\\helpers\\BaseJson::handleJsonError(5)",
    "#1 /var/www/html/vendor/yiisoft/yii2/web/JsonResponseFormatter.php(119): yii\\helpers\\BaseJson::encode(Array, 320)",
    "#2 /var/www/html/vendor/yiisoft/yii2/web/JsonResponseFormatter.php(104): yii\\web\\JsonResponseFormatter->formatJson(Object(craft\\web\\Response))",
    "#3 /var/www/html/vendor/yiisoft/yii2/web/Response.php(1100): yii\\web\\JsonResponseFormatter->format(Object(craft\\web\\Response))",
    "#4 /var/www/html/vendor/craftcms/cms/src/web/Response.php(281): yii\\web\\Response->prepare()",
    "#5 /var/www/html/vendor/yiisoft/yii2/web/Response.php(344): craft\\web\\Response->prepare()",
    "#6 /var/www/html/vendor/yiisoft/yii2/base/Application.php(398): yii\\web\\Response->send()",
    "#7 /var/www/html/web/index.php(27): yii\\base\\Application->run()",
    "#8 {main}"
  ]
}

Additional info

aelvan commented 3 years ago

Hi,

I'm not able to reproduce. Does this happen for all assets, or one in particular?