Skip to content
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

FATA[0000] getting the runtime version: rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: PROTOCOL_ERROR #576

Closed
Ruilkyu opened this issue Mar 6, 2021 · 8 comments
Labels
S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author.

Comments

@Ruilkyu
Copy link

Ruilkyu commented Mar 6, 2021

crictl --runtime-endpoint unix:///var/run/dragonforce.sock version
FATA[0000] getting the runtime version: rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: PROTOCOL_ERROR

@davidpdrsn
Copy link
Member

Sorry but, what..?

@Ruilkyu
Copy link
Author

Ruilkyu commented Mar 6, 2021

Go grpc can't send data to the UNIX socket server of tonic

@davidpdrsn
Copy link
Member

Are you able to provide a minimal reproducible example? I don't know go.

@Ruilkyu
Copy link
Author

Ruilkyu commented Mar 6, 2021

similar to #243

@Ruilkyu
Copy link
Author

Ruilkyu commented Mar 6, 2021

I have a big project on my side, which relies on tonic.I hope it can be solved quickly.It's very helpful for promotion tonic.

@davidpdrsn
Copy link
Member

Without a way of reproducing the error is hard to fix.

@davidpdrsn davidpdrsn added the S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author. label Mar 20, 2021
@davidpdrsn
Copy link
Member

I'm going to close this. Feel free to re-open if you're able to provide more details.

@Forsworns
Copy link

Just met the same problem these days.

In fact, it's due to a wrong usage of grpc. And this is not the problem of tonic.

There is a related discussion in hyperium/h2#487

The problem can be reproduced by following grpc-go client

conn, err := grpc.Dial("/var/sock.sock",
  grpc.WithInsecure(),
  grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
    return (&net.Dialer{}).DialContext(ctx, "unix", addr)
  }),
) 

Because the grpc.withAuthority is not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author.
Projects
None yet
Development

No branches or pull requests

3 participants