Преглед изворни кода

promtheus alert hadnler write empty result (#4517)

Yosef Mihretie пре 2 година
родитељ
комит
b6f6e344b2
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      api/server/handlers/webhook/prometheus_incoming.go

+ 1 - 0
api/server/handlers/webhook/prometheus_incoming.go

@@ -65,6 +65,7 @@ func (p *PrometheusAlertWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http
 		p.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(e, http.StatusInternalServerError))
 		return
 	}
+	p.WriteResult(w, r, "")
 }
 
 func (p *PrometheusAlertWebhookHandler) handlePrometheusAlert(ctx context.Context, projectId, clusterId int64, prometheusAlert *types.PrometheusAlert) error {