elementor / wp2static-addon-cloudflare-workers

CloudFlare Workers deployment add-on for WP2Static
https://wp2static.com/addons/cloudflare-workers/
The Unlicense
26 stars 13 forks source link

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

Open leonstafford opened 4 years ago

leonstafford commented 4 years ago
$ 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