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

catch 502 errors when bulk(+single?) deploying #1

Open
3 tasks
leonstafford opened this issue Mar 31, 2020 · 0 comments
Open
3 tasks

catch 502 errors when bulk(+single?) deploying #1

leonstafford opened this issue Mar 31, 2020 · 0 comments
Assignees

Comments

@leonstafford
Copy link
Contributor

leonstafford commented Mar 31, 2020

$ wp wp2static deploy
PHP Fatal error:  Uncaught GuzzleHttp\Exception\ServerException: Server error: `PUT https://api.cloudflare.com/client/v4/accounts/HASH/storage/kv/namespaces/HASH/bulk` resulted in a `502 Bad Gateway` response:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>clou (truncated...)
 in /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /var/www/htdocs/wp-content/plugins/wp2static-addon- in /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
Fatal error: Uncaught GuzzleHttp\Exception\ServerException: Server error: `PUT https://api.cloudflare.com/client/v4/accounts/HASH/storage/kv/namespaces/HASH/bulk` resulted in a `502 Bad Gateway` response:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>clou (truncated...)
 in /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /var/www/htdocs/wp-content/plugins/wp2static-addon- in /var/www/htdocs/wp-content/plugins/wp2static-addon-cloudflare-workers/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113
Error: There has been a critical error on your website.Learn more about debugging in WordPress. There has been a critical error on your website.

Likely poor connection, possibly rate limit. Subsequent run fine

  • implement try/catch block
  • mark current 'processing' deployment job as 'failed'
  • WsLog error
@leonstafford leonstafford self-assigned this Apr 1, 2020
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