Guzzle exceptions in Whitespace provider are not caught
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3529150. -->
Reported by: [joachim](https://www.drupal.org/user/107701)
Related to !6
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I tried the test env for my site's whitespace account, and a postcode search gives me this crash:</p>
<p>> GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: certificate has expired (see <a href="https://curl.haxx.se/libcurl/c/libcurl-errors.html">https://curl.haxx.se/libcurl/c/libcurl-errors.html</a>) for <a href="https://yadayada.whitespacews.com/WSAPIService.svc?wsdlWSAPIService.svc/GetAddresses">https://yadayada.whitespacews.com/WSAPIService.svc?wsdlWSAPIService.svc/GetAddresses</a> in GuzzleHttp\Handler\CurlFactory::createRejection() (line 276 of /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php). </p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>A problem with a request should not crash the site for the user.</p>
<p>Instead:</p>
<p>- log the problem<br>
- show the user a message saying postcode search is not currently working</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue