Merge pull request #4531 from NCDGHA/bugfix/issue_4530_fix_http_status_503

Fix to handle LE overload status 503 appropriately
This commit is contained in:
neil authored and GitHub committed 2023-03-02 18:00:36 +08:00
commit 67f543332a
1 file changed
+6
+6
View File
@@ -2229,6 +2229,12 @@ _send_signed_request() {
_debug3 _body "$_body"
fi
if [ "$code" = '503' ]; then
_sleep_overload_retry_sec=3
_info "It seems the CA server is currently overloaded, let's wait and retry. Sleeping $_sleep_overload_retry_sec seconds."
_sleep $_sleep_overload_retry_sec
continue
fi
if _contains "$_body" "JWS has invalid anti-replay nonce" || _contains "$_body" "JWS has an invalid anti-replay nonce"; then
_info "It seems the CA server is busy now, let's wait and retry. Sleeping $_sleep_retry_sec seconds."
_CACHED_NONCE=""
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.