grafana/k6 · error
canceled by client (k6)
Error message
canceled by client (k6)
What it means
Error "canceled by client (k6)" thrown in grafana/k6.
Source
Thrown at internal/lib/netext/grpcext/stream.go:30
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/types/dynamicpb"
"google.golang.org/protobuf/types/known/emptypb"
)
// Stream is the wrapper around the grpc.ClientStream
// with some handy methods.
type Stream struct {
method string
methodDescriptor protoreflect.MethodDescriptor
discardResponseMessage bool
raw grpc.ClientStream
marshaler protojson.MarshalOptions
unmarshaler protojson.UnmarshalOptions
}
// ErrCanceled canceled by client (k6)
var ErrCanceled = errors.New("canceled by client (k6)")
// ReceiveConverted receives a converted message from the stream
// if the stream has been closed successfully, it returns io.EOF
// if the stream has been cancelled, it returns ErrCanceled
func (s *Stream) ReceiveConverted() (any, error) {
raw, err := s.receive()
if err != nil && !errors.Is(err, io.EOF) {
return nil, err
}
if s.discardResponseMessage {
return struct{}{}, err
}
msg, errConv := convert(s.marshaler, raw)
if errConv != nil {
return nil, errConv
}View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/lib/netext/grpcext/stream.go:30 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/9c733a52ab6aa4ef.
Report an issue: GitHub.