{"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/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/cmd/outputs.go#L125-L161","documentation":"Raised in createOutputs when the --out argument's type prefix (before the first '=') has no entry in the outputConstructors registry. This is a user-facing config validation guard: the string before '=' names an output type that k6 (and its loaded extensions) does not register.","triggerScenarios":"Thrown at internal/cmd/outputs.go:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the spelling of the output type passed to --out (e.g. json, csv, influxdb, cloud, prometheus, dashboard)","Run 'k6 run --out list' style help or check registered extensions to see which output types are available","Build a custom k6 binary with the desired output extension registered via xk6"],"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"}