diff --git a/js/modules/k6/grpc/client.go b/js/modules/k6/grpc/client.go index 8b51fa6a87a..2ffb81a72f2 100644 --- a/js/modules/k6/grpc/client.go +++ b/js/modules/k6/grpc/client.go @@ -468,6 +468,7 @@ func (c *Client) parseInvokeParams(paramsVal goja.Value) (*invokeParams, error) if !ok { return result, fmt.Errorf("metadata %q value must be binary", hk) } + // https://github.com/grpc/grpc-go/blob/v1.57.0/Documentation/grpc-metadata.md#storing-binary-data-in-metadata strval = string(binval) } else if strval, ok = kv.(string); !ok { return result, fmt.Errorf("metadata %q value must be a string", hk)