{"record":{"id":"a426833a8da13d13","repo":"grafana/k6","slug":"insecureskiptlsverify-value-must-be-true-or-false","errorCode":null,"errorMessage":"insecureSkipTLSVerify value must be true or false, not %q","messagePattern":"insecureSkipTLSVerify value must be true or false, not %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/output/prometheusrw/remotewrite/config.go","lineNumber":345,"sourceCode":"}\n\n// parseArg parses the supplied string of arguments into a Config.\nfunc parseArg(text string) (Config, error) {\n\tvar c Config\n\topts := strings.SplitSeq(text, \",\")\n\n\tfor opt := range opts {\n\t\tr := strings.SplitN(opt, \"=\", 2)\n\t\tif len(r) != 2 {\n\t\t\treturn c, fmt.Errorf(\"couldn't parse argument %q as option\", opt)\n\t\t}\n\t\tkey, v := r[0], r[1]\n\t\tswitch key {\n\t\tcase \"url\":\n\t\t\tc.ServerURL = null.StringFrom(v)\n\t\tcase \"insecureSkipTLSVerify\":\n\t\t\tif err := c.InsecureSkipTLSVerify.UnmarshalText([]byte(v)); err != nil {\n\t\t\t\treturn c, fmt.Errorf(\"insecureSkipTLSVerify value must be true or false, not %q\", v)\n\t\t\t}\n\t\tcase \"tlsMinVersion\":\n\t\t\tc.TLSMinVersion = null.StringFrom(v)\n\t\tcase \"username\":\n\t\t\tc.Username = null.StringFrom(v)\n\t\tcase \"password\":\n\t\t\tc.Password = null.StringFrom(v)\n\t\tcase \"pushInterval\":\n\t\t\tif err := c.PushInterval.UnmarshalText([]byte(v)); err != nil {\n\t\t\t\treturn c, err\n\t\t\t}\n\t\tcase \"trendAsNativeHistogram\":\n\t\t\tif err := c.TrendAsNativeHistogram.UnmarshalText([]byte(v)); err != nil {\n\t\t\t\treturn c, fmt.Errorf(\"trendAsNativeHistogram value must be true or false, not %q\", v)\n\t\t\t}\n\n\t\t// TODO: add the support for trendStats\n\t\t// strvals doesn't support the same format used by --summary-trend-stats","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/output/prometheusrw/remotewrite/config.go#L327-L363","documentation":"For the insecureSkipTLSVerify option, parseArg delegates to UnmarshalText on a nullable bool; anything other than a valid boolean literal fails and this error reports the offending value. The remote-write config string contains a non-boolean for that key.","triggerScenarios":"Thrown at internal/output/prometheusrw/remotewrite/config.go:345 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use insecureSkipTLSVerify=true or insecureSkipTLSVerify=false in the argument 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":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}