diff --git a/src/Proxmox.php b/src/Proxmox.php index fb688d7..56fc946 100644 --- a/src/Proxmox.php +++ b/src/Proxmox.php @@ -116,7 +116,7 @@ private function requestResource($actionPath, $params = [], $method = 'GET') case 'GET': return $this->httpClient->get($url, [ 'verify' => false, - 'exceptions' => false, + 'http_errors' => false, 'cookies' => $cookies, 'query' => $params, ]); @@ -128,7 +128,7 @@ private function requestResource($actionPath, $params = [], $method = 'GET') ]; return $this->httpClient->request($method, $url, [ 'verify' => false, - 'exceptions' => false, + 'http_errors' => false, 'cookies' => $cookies, 'headers' => $headers, 'form_params' => $params, @@ -210,7 +210,7 @@ public function login() $loginUrl = $this->credentials->getApiUrl() . '/json/access/ticket'; $response = $this->httpClient->post($loginUrl, [ 'verify' => false, - 'exceptions' => false, + 'http_errors' => false, 'form_params' => [ 'username' => $this->credentials->getUsername(), 'password' => $this->credentials->getPassword(),