Error: Call to undefined method GuzzleHttp\Exception\ConnectException::getResponse() in Drupal\sidekick\SidekickService->checkKeyStatus() (line 137 of /app/web/modules/contrib/sidekick/src/SidekickService.php).

Error messege that we are getting when trying to connect site with Sidekick API key. Problem is in line 134 of SidekickService.php:
catch (ClientException|RequestException|TransferException|BadResponseException $exception) {
watchdog_exception('sidekick', $exception, null, [], 6);

return json_decode((string)$exception->getResponse()->getBody());
}

One more catch would be needed with ConnectException (keep in mind that it doesne have getResponse() method so smth other has to be done.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jovan1348 created an issue. See original summary.

jovan1348’s picture

jovan1348’s picture

Patch is fixing ConnectException error when site cant connect to web for some reason

jovan1348’s picture

viren18febS’s picture

Status: Active » Needs review
shyam-sawhney’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.