Guzzle exceptions in Whitespace provider are not caught

Created on 9 June 2025, 3 days ago

Problem/Motivation

I tried the test env for my site's whitespace account, and a postcode search gives me this crash:

> GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: certificate has expired (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://yadayada.whitespacews.com/WSAPIService.svc?wsdlWSAPIService.svc/... in GuzzleHttp\Handler\CurlFactory::createRejection() (line 276 of /var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php).

Steps to reproduce

Proposed resolution

A problem with a request should not crash the site for the user.

Instead:

- log the problem
- show the user a message saying postcode search is not currently working

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024