-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client-canceled XMLHttpRequests to proxy API cause webpack dev server to reload #427
Comments
I've gotten around this temporarily by imposing the timeout on the server but I'm still curious to see if there is a solution to this. |
It looks like aborting a proxied request triggers a "proxy error" message through the socket, which causes the client to reload. |
Same issue here. Any solution? |
same issue like this?: I think we need a way to configure/disable the timeout for long running requests. |
This can be fixed by adding the following line between lines 147 and 148 of lib/Server.js in 1.14.1:
ECONNRESET means it was not actually an error but intentional by the client. |
I can confirm @makuko's fix works in 1.14.1. This can sometimes be very common issue for those of us using Angular 2 + RxJS. |
This was fixed with PR #478, and released with |
I always encountered the
|
@hantsy how did you get around this for Angular 2 projects? |
@dhatawesomedude It seems it is disappeared in the latest Angular 4+, I was using newest Angular CLI to create the projects. |
I've run into an issue where if an XMLHttpRequest to a proxy API is either aborted or times out on the client it causes a proxy error and the dev server reloads the page. Does anyone know of a way around this?
The text was updated successfully, but these errors were encountered: