{"record":{"id":"53c34d05e4059dbd","repo":"grafana/k6","slug":"unknown-grpc-stream-s-event-type-s","errorCode":null,"errorMessage":"unknown GRPC stream's event type: %s","messagePattern":"unknown GRPC stream's event type: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/grpc/listeners.go","lineNumber":66,"sourceCode":"\tcase eventData:\n\t\treturn l.data\n\tcase eventError:\n\t\treturn l.error\n\tcase eventStatus:\n\t\treturn l.status\n\tcase eventEnd:\n\t\treturn l.end\n\tdefault:\n\t\treturn nil\n\t}\n}\n\n// add adds a listener to the listeners\nfunc (l *eventListeners) add(t string, f func(sobek.Value, sobek.Value) (sobek.Value, error)) error {\n\tlist := l.getType(t)\n\n\tif list == nil {\n\t\treturn fmt.Errorf(\"unknown GRPC stream's event type: %s\", t)\n\t}\n\n\tlist.add(f)\n\n\treturn nil\n}\n\n// all returns all possible listeners for a certain event type or an empty array\nfunc (l *eventListeners) all(t string) []func(sobek.Value, sobek.Value) (sobek.Value, error) {\n\tlist := l.getType(t)\n\n\tif list == nil {\n\t\treturn []func(sobek.Value, sobek.Value) (sobek.Value, error){}\n\t}\n\n\treturn list.list\n}\n","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/grpc/listeners.go#L48-L84","documentation":"Returned by eventListeners.add (used by stream.on / addEventListener) when the event type string does not match one of the supported stream events: 'data', 'error', 'status', or 'end'.","triggerScenarios":"Thrown at internal/js/modules/k6/grpc/listeners.go:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported event names: 'data', 'error', 'status', 'end'","Check for typos and casing in the event name string"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}