diff --git a/main.go b/main.go index 2bf7fa4..979886e 100644 --- a/main.go +++ b/main.go @@ -401,6 +401,7 @@ func (br *bridge) handleWebhooks(w http.ResponseWriter, r *http.Request) { var event payload if err := json.NewDecoder(r.Body).Decode(&event); err != nil { + http.Error(w, "Failed to parse payload", http.StatusInternalServerError) logger.Debug("Failed to decode payload", slog.String("error", err.Error())) return