Open swapnil-bhalekar opened 3 months ago
Can you try with:
onProxyRes: (proxyRes, req, res) => {
proxyRes.on('close', () => {
if (!res.writableEnded) {
res.destroy();
}
});
}
from https://github.com/chimurai/http-proxy-middleware/discussions/765#discussioncomment-2617739
We have already tried this approach. We are getting this issue when using through nginx . Without nginx its working fine.
Can you provide a working reproduction of this issue so it can be investigated?
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
When we deploy web application for SSE in argocd with nginx server we are not able close SSE server connection on closing of event stream. For front end we are using Angular 16 and for backend service we are using NodeJS
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
It should close SSE connection on closing of event stream when we deploy our application in argoCD. We are able to close SSE event in local machine without using argoCD.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response