Open whatwewant opened 2 years ago
@chimurai node-http-proxy socket will throw error if no error listener for default eventemitter
how to: just
this.proxy.ws(req, socket, head, activeProxyOptions, this.logError);
found latest source code, should change this.logError
Hi. Thanks for reporting.
Could you try with http-proxy-middleware@beta
? (v3.0.0-beta.0)
V3 registered some additional error handlers to catch the uncaught errors. (https://github.com/chimurai/http-proxy-middleware/blob/master/src/plugins/default/debug-proxy-errors-plugin.ts)
Hopefully it's already fixed in V3
Hi. Thanks for reporting.
Could you try with
http-proxy-middleware@beta
? (v3.0.0-beta.0)V3 registered some additional error handlers to catch the uncaught errors. (https://github.com/chimurai/http-proxy-middleware/blob/master/src/plugins/default/debug-proxy-errors-plugin.ts)
Hopefully it's already fixed in V3
thanks for reply, i will try it later
It is coming in beta too
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
Server not crashed, just log errors
How is http-proxy-middleware used in your project?
Additional context (optional)
No response