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

Grpc-web: rpc error: code = Unavailable desc = connection closed before server preface received #428

Open
ma54ik opened this issue Dec 19, 2023 · 1 comment

Comments

@ma54ik
Copy link

ma54ik commented Dec 19, 2023

Hi everyone,
I have the following problem:

Proto file(s)
syntax = "proto3";

option csharp_namespace = "GrpcWebDemo";

package greet;

// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply);
}

// The request message containing the user's name.
message HelloRequest {
string name = 1;
}

// The response message containing the greetings.
message HelloReply {
string message = 1;
}

Command line arguments / config
./ghz --insecure --proto .../Protos/greet.proto --call greet.Greeter.SayHello -d '{ "name": "Geralt!" }' localhost:9999

Describe the bug
Summary:
Count: 200
Total: 31.32 ms
Slowest: 0 ns
Fastest: 0 ns
Average: 2.10 ms
Requests/sec: 6385.72

Response time histogram:

Latency distribution:

Status code distribution:
[Unavailable] 200 responses

Error distribution:
[200] rpc error: code = Unavailable desc = connection closed before server preface received

Environment

  • OS: Linux 5.13.19-2-MANJARO
  • ghz: v0.117.0

I created a grpc-web hello world API in dotnet C# and tried the ghz-command mentioned above.
Grpcurl works well, but I like to use ghz for benchmark testing.
Is ghz working for grpc-web requests?
If it works, where is my mistake?

Best regards!

@ragmr
Copy link

ragmr commented Feb 28, 2024

Hi @ma54ik , any luck with testing grpc-web using ghz? I am in the similar situation where I need to test grpc-web requests and wondering if GHZ supports. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants