Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling when Netlify access token incorrect #4

Open
leonstafford opened this issue Jan 6, 2021 · 0 comments
Open

Better error handling when Netlify access token incorrect #4

leonstafford opened this issue Jan 6, 2021 · 0 comments

Comments

@leonstafford
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant