Add another error message substring for detecting errors due to being offline, to improve #30

This commit is contained in:
David Dworken 2023-09-13 22:49:40 -07:00
parent e8ceb02138
commit d4e01ceb11
No known key found for this signature in database

View File

@ -471,7 +471,8 @@ func IsOfflineError(err error) bool {
strings.Contains(err.Error(), ": status_code=503") ||
strings.Contains(err.Error(), ": i/o timeout") ||
strings.Contains(err.Error(), "connect: operation timed out") ||
strings.Contains(err.Error(), "net/http: TLS handshake timeout")
strings.Contains(err.Error(), "net/http: TLS handshake timeout") ||
strings.Contains(err.Error(), "connect: connection refused")
}
func normalizeEntryTimezone(entry data.HistoryEntry) data.HistoryEntry {