DigitalOceanPHP / Client

DigitalOcean API v2 client for PHP
MIT License
709 stars 205 forks source link

Fatal error when handling error #190

Closed bravadomizzou closed 4 years ago

bravadomizzou commented 6 years ago

Fatal error: Call to a member function getBody() on a non-object in /vendor/toin0u/digitalocean-v2/src/Adapter/GuzzleHttpAdapter.php on line 133

line in question: $body = (string) $this->response->getBody();

I get this error almost weekly (usually a direct result of Digital Ocean experiencing networking problems) and it breaks a cronjob, the issue seems to be that sometimes there is no response, can someone make a new exception for when there is no response

glennjacobs commented 4 years ago

See #229 for more recent report of this bug.