Page MenuHomeDevCentral

Intercept BadResponseException in /lists/replace URI shorten feature
Closed, ResolvedPublic

Description

In /lists/replace tool, when an issue occurs with the Bitly API, we get this exception:

Fatal error: Uncaught exception 'Guzzle\Http\Exception\ServerErrorResponseException' with message 'Server error response [status code] 500 [reason phrase] INVALID_URI [url] https://api-ssl.bitly.com/v3/shorten?... in /var/wwwroot/nasqueron.org/tools/vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php on line 43

We need to intercept it (BadResponseException), and degrades silently the installation.