Replies: 2 comments 3 replies
-
http-proxy-middleware log statements are prefixed with The message you're seeing is probably coming from http-proxy. Found this undocumented This Can you try to patch and manually subscribe to this.proxy.on('error', this.logError);
this.proxy.on('econnreset', () => { // do nothing }) If this works I can expose the missing events. |
Beta Was this translation helpful? Give feedback.
-
@chimurai thanks for your quick response. I've patched the library with the following line but it didn't help a lot:
I was able to extend my
and I see that the error gets caught:
But the error messages are still displayed in the terminal. The only one solution that helped was commenting out this line in @chimurai what would you suggest me to do about it? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
I am using
http-proxy-middleware
in my VueJS application as a proxy tool.Here is my simple configuration of
devServer
invue.config.js
:Recently I've introduced cancelling of some HTTP requests and it causes this kind of error in terminal when devServer is running:
I would like to hide such errors from the terminal because I cancel requests manually and it's expected.
I've tried a couple of solutions:
logLevel: silent
to proxy configNone of the options could help me to hide these
ECONNRESET
errors.I would appreciate if someone can help me in this question.
Beta Was this translation helpful? Give feedback.
All reactions