elementor / elementor/wp2static-addon-cloudflare-workers
catch 502 errors when bulk(+single?) deploying
Open
- Dominant language
- PHP
- Stars
- 27
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
```
$ 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:
502 Bad Gateway
502 Bad Gateway
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:
502 Bad Gateway
502 Bad Gateway
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.