From cdcdd1aad5b9e2f6716811ab5308a6fe8769e5ce Mon Sep 17 00:00:00 2001 From: kingIZZZY Date: Tue, 2 Jan 2024 21:51:03 -0500 Subject: [PATCH] Guzzle client should not throw exceptions upon error by default This should be somehow depend on DataService::isThrownExceptionOnError() and not remain default throw exceptions --- src/Core/HttpClients/GuzzleHttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/HttpClients/GuzzleHttpClient.php b/src/Core/HttpClients/GuzzleHttpClient.php index 490ad40e..faf683d2 100644 --- a/src/Core/HttpClients/GuzzleHttpClient.php +++ b/src/Core/HttpClients/GuzzleHttpClient.php @@ -41,7 +41,7 @@ public function __construct(Client $guzzleClient = null){ if(isset($guzzleClient)){ $this->guzzleClient = $guzzleClient; }else{ - $this->guzzleClient = new Client(); + $this->guzzleClient = new Client(['http_errors' => false]); } }