{"record":{"id":"a03e08c3b1124c3e","repo":"grafana/k6","slug":"insecure-must-be-true-or-false-not-s","errorCode":null,"errorMessage":"insecure must be true or false, not %s","messagePattern":"insecure must be true or false, not (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/output/influxdb/config.go","lineNumber":157,"sourceCode":"\t} else if db := strings.TrimPrefix(u.Path, \"/\"); db != \"\" {\n\t\tc.DB = null.StringFrom(db)\n\t}\n\tif u.User != nil {\n\t\tc.Username = null.StringFrom(u.User.Username())\n\t\tpass, _ := u.User.Password()\n\t\tc.Password = null.StringFrom(pass)\n\t}\n\tfor k, vs := range u.Query() {\n\t\tswitch k {\n\t\tcase \"insecure\":\n\t\t\tswitch vs[0] {\n\t\t\tcase \"\":\n\t\t\tcase \"false\":\n\t\t\t\tc.Insecure = null.BoolFrom(false)\n\t\t\tcase \"true\":\n\t\t\t\tc.Insecure = null.BoolFrom(true)\n\t\t\tdefault:\n\t\t\t\treturn c, fmt.Errorf(\"insecure must be true or false, not %s\", vs[0])\n\t\t\t}\n\t\tcase \"payload_size\":\n\t\t\tvar size int\n\t\t\tsize, err = strconv.Atoi(vs[0])\n\t\t\tif err != nil {\n\t\t\t\treturn c, err\n\t\t\t}\n\t\t\tc.PayloadSize = null.IntFrom(int64(size))\n\t\tcase \"precision\":\n\t\t\tc.Precision = null.StringFrom(vs[0])\n\t\tcase \"retention\":\n\t\t\tc.Retention = null.StringFrom(vs[0])\n\t\tcase \"consistency\":\n\t\t\tc.Consistency = null.StringFrom(vs[0])\n\n\t\tcase \"pushInterval\":\n\t\t\terr = c.PushInterval.UnmarshalText([]byte(vs[0]))\n\t\t\tif err != nil {","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/grafana/k6/blob/165bb3c1a492b7a4823907fe1e93a30645794737/internal/output/influxdb/config.go#L139-L175","documentation":"Query-parameter validation in the InfluxDB output's ParseURL: while walking the URL's query string, the insecure parameter was found with a value that is not the empty string, \"true\", or \"false\". InfluxDB output configuration is encoded as URL query parameters, and this guard rejects any other truthiness spelling (e.g., 1, yes, TRUE) to avoid ambiguity about TLS certificate verification behavior.","triggerScenarios":"Thrown at internal/output/influxdb/config.go:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Write the parameter as K6_INFLUXDB_ADDR-based URL with insecure=true or insecure=false exactly","Remove the parameter entirely to keep the default (secure) behavior","Set the value via environment variable or config file as a proper boolean instead of the URL"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"165bb3c1a492b7a4823907fe1e93a30645794737","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}