Actions
Bug #104706
closedGeneralUtility::getUrl() does not catch all Guzzle exceptions anymore
Start date:
2024-08-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Description
In getUrl()
only a \GuzzleHttp\Exception\RequestException
is catched. This piece of code exists since April 20, 2016.
At that time ConnectException
and RequestException
were not yet separated in Guzzle. But that changed in January 2020 and since then, they both extend TransferException
.
So I think that GeneralUtility::getUrl()
should catch \GuzzleHttp\Exception\TransferException
.
See also: https://github.com/guzzle/guzzle/blob/7.9.2/UPGRADING.md?plain=1#L22
Actions