-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
proxy server does not work #2126
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
Comments
You don't provide minimum reproducible test repo as described in issue template so we can't help, you can see |
Here is a minimal reproducible test repo |
So it appears that the proxy dev server expects the tcp connection to remain connected after the backend server sends its response. Am I supposed to just hold the connection resource open, for every single new connection from the proxy server, permanently on my server? I would not like to do this. Is this expected? Is this configurable? |
@SephVelut Can you explain how to occur this problem using your repository? I would like to know the procedure because your minimal test repository doesn't have README. |
@hiroppy I agree, the repo should include an example server that the proxy uses to talk to as it's an important piece. Right now I don't have time so I'm going to close this issue, until I can address it again in the future. |
Given
The dev server successfully proxies the request to localhost:8000 backend server. I see the request reaches the backend server and the backend server responds with
Despite that, the webpack dev server errors out with
Proxy error: Could not proxy request /login from localhost:8080 to http://localhost:8000. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET).
The Ajax request on the javascript side receives a 500 http error.
The text was updated successfully, but these errors were encountered: