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

Google/protobuf/wrappers.proto support is not implemented in K6 #3232

Closed
zibul444 opened this issue Jul 27, 2023 · 1 comment · Fixed by #3344
Closed

Google/protobuf/wrappers.proto support is not implemented in K6 #3232

zibul444 opened this issue Jul 27, 2023 · 1 comment · Fixed by #3344
Assignees
Labels

Comments

@zibul444
Copy link

zibul444 commented Jul 27, 2023

Brief summary

I wrote my service, and decided to test it:

service TestService {

  rpc Foo(Request) returns (google.protobuf.BoolValue) {
  }

  rpc Bar(Request) returns (Response) {
  }

}

message Request {
}

message Response {
  bool value = 1;
}
console.info("GRPC response code: " + response.status + ", response body: " + JSON.stringify(response.message));
console.info(`${subMethod} Response: ${JSON.stringify(response)}`)

INFO[0000] GRPC response code: 0, response body: {}      source=console
INFO[0000] Foo Response: {"message":{},"error":null,"headers":{"content-type":["application/grpc"]},"trailers":{},"status":0}  source=console
INFO[0000] GRPC response code: 0, response body: {"value":false}  source=console
INFO[0000] Bar Response: {"message":{"value":false},"error":null,"headers":{"content-type":["application/grpc"]},"trailers":{},"status":0}  source=console

Actually, this is the problem. Google/protobuf/wrappers.proto support is not implemented in K6

k6 version

v0.44.1

OS

all

Docker version and image (if applicable)

No response

Steps to reproduce the problem

rpc Foo(Request) returns (google.protobuf.BoolValue) {
  }
client.connect(api_url, {
    plaintext: true,
    reflect: true,
    timeout: params.timeout,
    maxReceiveSize: 300000
});
response = client.invoke(method, body, params)

console.info(`${subMethod} Response: ${JSON.stringify(response)}`);

Expected behaviour

INFO[0000] Bar Response: {"message":"false","error":null,"headers":{"content-type":["application/grpc"]},"trailers":{},"status":0} source=console

Actual behaviour

INFO[0000] Bar Response: {"message":"","error":null,"headers":{"content-type":["application/grpc"]},"trailers":{},"status":0} source=console

@oleiade
Copy link
Member

oleiade commented Jul 31, 2023

Original community support request: https://community.grafana.com/t/the-grpc-response-message-is-empty/99813/7

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

Successfully merging a pull request may close this issue.

4 participants