-
Notifications
You must be signed in to change notification settings - Fork 271
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
Breaking change introduced in 2.4.0 grpc-web flutter #380
Comments
Does removing these three lines: https://github.com/grpc/grpc-dart/pull/369/files#diff-b5d4b67a950306222090fd9c916740320086a1241fc0052a8941002423e449cf fix it? |
I've removed this from request.setRequestHeader('Content-Type', 'application/grpc-web+proto');
request.setRequestHeader('X-User-Agent', 'grpc-web-dart/0.1');
request.setRequestHeader('X-Grpc-Web', '1'); But the result is the same. |
UPDATE: It does work. My fault. Seems like I've remove them from the pub version, not the one that I was actually using. |
We are going to revert offending change and publish a fixed version of the package, but most likely this is not going to happen earlier than next week. I am also going to switch to envoy proxy for testing instead of grpcwebproxy, because it turns out that grpcwebproxy is too lax and did not catch this bug. |
We have published 2.8.0 which fixes the issue and we have switched our testing to use envoy proxy to catch this sort of errors earlier. |
Using a commit after bb4eab0 generates this error. Seems like something changed in the way the request is made. I'm assuming is the headers.
I tried this against a local envoy proxy and with Google Cloud Run with ESPv2(envoy).
grpc web init:
Let me know if there is anything I can do to help identifying the bug and fixing it.
Thanks
The text was updated successfully, but these errors were encountered: