mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-30 08:54:25 +08:00
ignore bad gateway, retry later on license validation
This commit is contained in:
parent
ddff30793d
commit
19a2784b7f
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ func validateLicenseKey(encryptedData []byte, publicKey *[32]byte) ([]byte, bool
|
|||
slog.Warn(err.Error())
|
||||
|
||||
// try to use cache if we had a temporary error
|
||||
if code == http.StatusServiceUnavailable || code == http.StatusGatewayTimeout {
|
||||
if code == http.StatusServiceUnavailable || code == http.StatusGatewayTimeout || code == http.StatusBadGateway {
|
||||
slog.Warn("Netmaker API may be down, will retry later...", "code", code)
|
||||
return nil, true, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue