Skip to content

Commit

Permalink
Exception upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Kravets committed Jun 21, 2023
1 parent a9a6f76 commit 37632a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConfigProvider

/** @var ScopeConfigInterface */
protected $scopeConfig;
protected $sandboxApiUrl = "https://stage-api-it-points-new.easypack24.net";
protected $sandboxApiUrl = "https://api-it-local-points.easypack24.net";
protected $productionApiUrl = "https://api-it-points-new.easypack24.net";

/**
Expand Down
5 changes: 4 additions & 1 deletion Service/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ public function post($path, $body): ResponseInterface
'body' => $body
]);
} catch (GuzzleException $e) {
throw new HttpClientException($e->getMessage());
$response = $e->getResponse();
$responseBodyAsString = $response->getBody()->getContents();

throw new HttpClientException($responseBodyAsString);
}

if ($response->getStatusCode() > 210) {
Expand Down

0 comments on commit 37632a8

Please sign in to comment.