From 4612d0d1e9f1a98d253a2cad648ff00585de6a56 Mon Sep 17 00:00:00 2001 From: David Grelaud Date: Wed, 24 Dec 2025 00:47:45 +0100 Subject: [PATCH] trying to fix issue #10 --- src/Responses/CarboneSdkResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Responses/CarboneSdkResponse.php b/src/Responses/CarboneSdkResponse.php index 16daaa4..178aa18 100644 --- a/src/Responses/CarboneSdkResponse.php +++ b/src/Responses/CarboneSdkResponse.php @@ -18,7 +18,7 @@ class CarboneSdkResponse extends Response public function toException(): ?CarboneSdkRequestException { if ($this->failed()) { - $body = $this->response?->getBody()?->getContents(); + $body = $this->body(); return new CarboneSdkRequestException($this, $body, 0, $this->getGuzzleException()); }