grafana/k6 · error
invalid GRPC Stream's parameters
Error message
invalid GRPC Stream's parameters: %w
What it means
Raised in the grpc module's stream constructor when newCallParams rejects the third argument — invalid values for metadata, tags, timeout, or an unknown parameter key. Thrown via common.Throw with the underlying cause wrapped.
Solutions
- Follow the wrapped error to the offending stream option
- Use only recognized keys: metadata, tags, timeout, discardResponseMessage
- Use correct types (object for metadata/tags, duration for timeout)
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at internal/js/modules/k6/grpc/grpc.go:128 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@01ffac6f24 (2026-08-18).
Data as JSON: /api/errors/0a3ae3fcfd823586.
Report an issue: GitHub.
Appendix: source
Thrown at internal/js/modules/k6/grpc/grpc.go:128
// stream returns a new stream object
func (mi *ModuleInstance) stream(c sobek.ConstructorCall) *sobek.Object {
rt := mi.vu.Runtime()
client, err := extractClient(c.Argument(0), rt)
if err != nil {
common.Throw(rt, fmt.Errorf("invalid GRPC Stream's client: %w", err))
}
methodName := sanitizeMethodName(c.Argument(1).String())
methodDescriptor, err := client.getMethodDescriptor(methodName)
if err != nil {
common.Throw(rt, fmt.Errorf("invalid GRPC Stream's method: %w", err))
}
p, err := newCallParams(mi.vu, c.Argument(2))
if err != nil {
common.Throw(rt, fmt.Errorf("invalid GRPC Stream's parameters: %w", err))
}
p.SetSystemTags(mi.vu.State(), client.addr, methodName)
logger := mi.vu.State().Logger.WithField("streamMethod", methodName)
s := &stream{
vu: mi.vu,
client: client,
methodDescriptor: methodDescriptor,
method: methodName,
logger: logger,
tq: taskqueue.New(mi.vu.RegisterCallback),
instanceMetrics: mi.metrics,
builtinMetrics: mi.vu.State().BuiltinMetrics,
done: make(chan struct{}),View on GitHub (pinned to 01ffac6f24)