Closed
Description
Symfony version(s) affected:
symfony/http-client v4.3.4
Description
I am having trouble catching Symfony\Component\HttpClient\Exception\TransportException
when doing a GET request on servers without SSL installed.
How to reproduce
Trying to catch, \Symfony\Component\HttpClient\Exception\TransportException
nor \Exception
nor \Throwable
doesn't seem to help.
$client = HttpClient::create();
try {
$response = $client->request( 'GET', 'https://xxxx.xxxx' );
} catch ( \Symfony\Component\HttpClient\Exception\TransportException | \Exception | \Throwable $exception ) {
die( $exception->getMessage() );
}
Still throws Fatal error
: https://pastebin.com/raw/edfnSeu5
PS
In case it might help, I have the following packages too:
composer show
https://pastebin.com/raw/mXJSxqQj
composer.json
https://pastebin.com/raw/05PbqDZS
Hope somebody can help.