Skip to content

Commit

Permalink
fix: issue#13
Browse files Browse the repository at this point in the history
  • Loading branch information
mnovozhylov committed Mar 1, 2024
1 parent cf00044 commit 1a50ded
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Upwork/API/AuthTypes/OAuth2ClientLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ public function request($type, $url, $params = array(), string $tenantId = null)
// but we need a raw json that will be decoded and returned as StdClass object
$response = $this->getInstance()->getResponse($request);
} catch (\GuzzleHttp\Exception\ClientException $e) {
$eResponse = $e->getResponse();
$response = $eResponse->getBody()->getContents();
$response = $e->getResponse();
} catch (\Exception $e) {
$response = $e->getResponseBody();
}
Expand Down

0 comments on commit 1a50ded

Please sign in to comment.