Support Any.proto for GRPC #2447
Labels
area: grpc
bug
evaluation needed
proposal needs to be validated or tested before fully implementing it in k6
triage
Milestone
Brief summary
For a GRPC service whose message type uses Any.proto. K6 is unable to locate the protobuf to serialize to the given type.
Given a data object such as
k6 will throw an error:
unable to serialise request object to protocol buffer: proto: (line 1:157): unable to resolve "type.googleapis.com/test.Client": "not found"
k6 version
k6 v0.36.0 ((devel), go1.17.6, darwin/amd64)
OS
macOS Montery
Docker version and image (if applicable)
No response
Steps to reproduce the problem
For a given grpc service such as
That references Any.proto, k6 is not able to serialize to the expected protobuf type, even if it's part of the client.load protobuf definitions.
The protobuf descriptors seem to load correctly, but since they aren't directly related to a service descriptor I think they are filtered out here possibly and fails here.
Expected behaviour
Any.proto is able to seralize to any proto passed into client.load.serialize
Actual behaviour
Exception thrown
unable to serialise request object to protocol buffer: proto: (line 1:157): unable to resolve "type.googleapis.com/test.Client": "not found"
The text was updated successfully, but these errors were encountered: