Skip to content

Commit

Permalink
Merge pull request #509 from kingIZZZY/psr7-str-undefined
Browse files Browse the repository at this point in the history
undefined function GuzzleHttp\Psr7\str() - fix #475 #493
  • Loading branch information
ManikaSaiKiran authored Aug 27, 2024
2 parents 8d04463 + 7d1f606 commit b6c8ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/HttpClients/GuzzleHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function makeAPICall($url, $method, array $headers, $body, $timeOut, $ver
return $this->getLastResponse();
} catch(RequestException $e){
if($e->hasResponse()){
throw new SdkException("A networking error occurs during Guzzle client request:" . Psr7\str($e->getResponse()));
throw new SdkException("A networking error occurs during Guzzle client request:" . Psr7\Message::toString($e->getResponse()));
}else{
throw new SdkException("Network Error:" . $e->getMessage());
}
Expand Down

0 comments on commit b6c8ab7

Please sign in to comment.