Skip to content

Commit 8010441

Browse files
committed
fix: error truncation
1 parent ccb762c commit 8010441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Cluster/MakesHttpCalls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function call(string $method, string $path, string $payload = '', array $
8484
RequestOptions::BODY => $payload,
8585
]);
8686
} catch (ClientException $e) {
87-
$errorPayload = json_decode((string) $e->getResponse()->getBody(), true);
87+
$errorPayload = json_decode((string) $e->getResponse()->getBody()->getContents(), true);
8888

8989
throw new KubernetesAPIException(
9090
$e->getMessage(),

0 commit comments

Comments
 (0)