-
Notifications
You must be signed in to change notification settings - Fork 272
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
HTTP/2 error: Stream error: Stream was terminated by peer (errorCode: 1) when using Unix sockets on OSX #576
Comments
The server also works as expected with a |
Could you please put your reproduction into some github/gitlab repo and license it under some open-source license of your choice? We can't look at any code that does not have a clear license unfortunately. |
Sure, added it to the examples in the fork https://github.com/denizt/grpc-dart/tree/mullvad-testcase/example Same license as the repo, Apache-2.0 |
I took a quick look. Enabling verbose logging on the server side reveals that it (rightfully so) does not like authority field which I will make PR which would make |
We were using path to the UDS socket itself, which is incorrect `:authority` value. This was tripping checks in some HTTP2 protocol implementations. Instead default `:authority` to `localhost`, which in line with other gRPC implementations. Fixes #576
All gRPC calls fail when using UNIX sockets on mullvad-daemon
grpc: 3.0.2
Repro steps
Expected result: TunnelState indicating the state of the VPN
Actual result: HTTP/2 error: Stream error: Stream was terminated by peer (errorCode: 1)
Details
Might be related to #572
The server is built with https://github.com/hyperium/tonic and works as expected for both rust and grpc-python
mullvad_daemon_test.zip
The text was updated successfully, but these errors were encountered: