-
Notifications
You must be signed in to change notification settings - Fork 825
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
Problems with SSE and chunked encoding + gzip #371
Comments
I just figured out, if I disable the compression for the webpack dev server it works as expected... |
I guess this is the culprit: |
How do you perform it? |
@Fractaliste I hacked this into my scripts:
|
@joshiste Thanks man! You saved me a lot of time and frustration. I wouldn't have managed understanding this. For those not using linux (
➤ YN0000: Package react-scripts@npm:4.0.3 got extracted with success!
➤ YN0000: You can now edit the following folder: <path/to/folder>
➤ YN0000: Once you are done run yarn patch-commit "<path/to/folder>" and Yarn will store a patchfile based on your changes.
➤ YN0000: Done in 0s 436ms - compress: true
+ compress: false
- "react-scripts": "^4.0.3",
+ "react-scripts": "patch:react-scripts@^4.0.3#./react-scripts.diff",
|
Partially works around EventSource not working with proxy. chimurai/http-proxy-middleware#371 (comment)
here might be the fix, at least only this works for me when I do redirect to another gateway
|
@michael-vasyliv Your fix is close, but not quite enough. I found the trick here : res.writeHead(res.statusCode, { |
It looks to me as the proxy has some issues with chunked encoding.
This is my config:
This is the request/response from the backend (captured via wireshark)
and this is the request/response from the proxy:
The response looks somehow broken to me.
The text was updated successfully, but these errors were encountered: