mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-05 00:18:00 +00:00
a703707aa0
express.json() fully drains the incoming request stream. http-proxy-middleware then pipes an already-consumed empty stream to the remote Sencho instance, which holds the connection open waiting for body bytes that never arrive (Content-Length says N but 0 bytes are forwarded). This caused all POST/PUT/PATCH requests to remote nodes — most visibly 'Add Alert Rule' — to hang indefinitely with an infinite loading spinner. Fix: in the proxyReq handler, write JSON.stringify(req.body) with correct Content-Type and Content-Length headers before forwarding, restoring the full request body.