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()); }