Skip to content

Open-source status page, incident response and uptime monitoring

🚑 fix log

Thibault Le Ouay4842074a11de
diff --git a/apps/checker/pkg/tinybird/client.go b/apps/checker/pkg/tinybird/client.go
index e4aef093c..e1ee128d1 100644
--- a/apps/checker/pkg/tinybird/client.go
+++ b/apps/checker/pkg/tinybird/client.go
@@ -60,7 +60,7 @@ func (c client) SendEvent(ctx context.Context, event any) error {
}
defer resp.Body.Close()
- if resp.StatusCode != http.StatusOK {
+ if resp.StatusCode != http.StatusOK || resp.StatusCode != http.StatusAccepted {
log.Ctx(ctx).Error().Str("status", resp.Status).Msg("unexpected status code")
return fmt.Errorf("unexpected status code: %d", resp.StatusCode)
}