{"record":{"id":"c9067e3d5dc36422","repo":"grafana/k6","slug":"invalid-output-type-s-available-types-are-s","errorCode":null,"errorMessage":"invalid output type '%s', available types are: %s","messagePattern":"invalid output type '(.+?)', available types are: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cmd/outputs.go","lineNumber":143,"sourceCode":"\t\tScriptOptions:  test.derivedConfig.Options,\n\t\tRuntimeOptions: test.preInitState.RuntimeOptions,\n\t\tExecutionPlan:  executionPlan,\n\t\tUsage:          test.preInitState.Usage,\n\t\tFeatures:       test.preInitState.FeatureFlags,\n\t}\n\n\toutputs := test.derivedConfig.Out\n\tif test.derivedConfig.WebDashboard.Bool {\n\t\toutputs = append(outputs, dashboard.OutputName)\n\t}\n\n\tresult := make([]output.Output, 0, len(outputs))\n\n\tfor _, outputFullArg := range outputs {\n\t\toutputType, outputArg, _ := strings.Cut(outputFullArg, \"=\")\n\t\toutputConstructor, ok := outputConstructors[outputType]\n\t\tif !ok {\n\t\t\treturn nil, fmt.Errorf(\n\t\t\t\t\"invalid output type '%s', available types are: %s\",\n\t\t\t\toutputType, getPossibleIDList(outputConstructors),\n\t\t\t)\n\t\t}\n\t\tif _, builtinErr := builtinOutputString(outputType); builtinErr == nil {\n\t\t\terr := test.preInitState.Usage.Strings(\"outputs\", outputType)\n\t\t\tif err != nil {\n\t\t\t\tgs.Logger.WithError(err).Warnf(\"Couldn't report usage for output %q\", outputType)\n\t\t\t}\n\t\t}\n\n\t\t// An output is an extension by membership in the output registry, not by\n\t\t// its name, so built-in outputs stay out of the \"extensions\" bucket that\n\t\t// the usage report filters against the catalog.\n\t\tif e, isExt := ext.Get(ext.OutputExtension)[outputType]; isExt {\n\t\t\tif err := test.preInitState.Usage.Values(\"extensions\", e); err != nil {\n\t\t\t\tgs.Logger.WithError(err).Warnf(\"Couldn't report usage for output extension %q\", outputType)\n\t\t\t}","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/cmd/outputs.go#L125-L161","documentation":"Error \"invalid output type '%s', available types are: %s\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/cmd/outputs.go:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}