thephpleague / glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.
http://glide.thephpleague.com
MIT License
2.54k stars 198 forks source link

Exception message is hidden #398

Closed AidasK closed 1 month ago

AidasK commented 1 month ago

It took too long to find a cause of a not working cache setup. The real issue was wrong bucket setup:

Unable to write file at location: a. {
  "error": {
    "code": 400,
    "message": "Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access",
    "errors": [
      {
        "message": "Cannot insert legacy ACL for an object when uniform bucket-level access is enabled. Read more at https://cloud.google.com/storage/docs/uniform-bucket-level-access",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}.

So exceptions should not be hidden as they do help to solve the problem easier.

mantasekom commented 1 month ago

It would be really nice to have this fix.