wp2static-addon-netlify icon indicating copy to clipboard operation
wp2static-addon-netlify copied to clipboard

Better error handling when Netlify access token incorrect

Open leonstafford opened this issue 5 years ago • 0 comments

current behaviour, when running via WP_CLI:

PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://api.netlify.com/api/v1/sites/mystaticsite.net/deploys resulted in a 401 Unauthorized response in /usr/html/wp-content/plugins/wp2static-addon-netlify/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

expected behaviour:

presents user with clear error message of what's gone wrong/how to fix

leonstafford avatar Jan 06 '21 13:01 leonstafford