Skip to content

Commit

Permalink
Merge pull request #2868 from gravitl/release-v0.23.0
Browse files Browse the repository at this point in the history
ignore bad gateway, retry later on license validation
  • Loading branch information
abhishek9686 authored Mar 22, 2024
2 parents 373780d + 19a2784 commit ed355c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pro/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ed355c6

Please sign in to comment.