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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3405188-error-messege-on-connect-exception-2.patch | 1.17 KB | jovan1348 |
Comments
Comment #2
jovan1348 CreditAttribution: jovan1348 at acolono GmbH commentedComment #3
jovan1348 CreditAttribution: jovan1348 at acolono GmbH commentedPatch is fixing ConnectException error when site cant connect to web for some reason
Comment #4
jovan1348 CreditAttribution: jovan1348 at acolono GmbH for BetterWorld / BessereWelt Info commentedComment #5
viren18febS CreditAttribution: viren18febS at Concinnity Media Technologies for Concinnity Media Technologies commentedComment #6
shyam-sawhney CreditAttribution: shyam-sawhney at acolono GmbH for BetterWorld / BessereWelt Info commented