{"record":{"id":"3fff392921b9e956","repo":"probelabs/goreplay","slug":"expected-key-value-3fff39","errorCode":null,"errorMessage":"Expected `Key=Value`","messagePattern":"Expected `Key=Value`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"http_modifier_settings.go","lineNumber":172,"sourceCode":"\n// Handling of --http-set-param option\ntype httpParam struct {\n\tName  []byte\n\tValue []byte\n}\n\n// HTTPParams filters for --http-set-param\ntype HTTPParams []httpParam\n\nfunc (h *HTTPParams) String() string {\n\treturn fmt.Sprint(*h)\n}\n\n// Set method to implement flags.Value\nfunc (h *HTTPParams) Set(value string) error {\n\tv := strings.SplitN(value, \"=\", 2)\n\tif len(v) != 2 {\n\t\treturn errors.New(\"Expected `Key=Value`\")\n\t}\n\n\tparam := httpParam{\n\t\t[]byte(strings.TrimSpace(v[0])),\n\t\t[]byte(strings.TrimSpace(v[1])),\n\t}\n\n\t*h = append(*h, param)\n\treturn nil\n}\n\n//\n// Handling of --http-allow-method option\n//\n\n// HTTPMethods holds values for method allowed\ntype HTTPMethods [][]byte\n","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/probelabs/goreplay/blob/251e45abd242886bb64ff2b2dc98789556b56330/http_modifier_settings.go#L154-L190","documentation":"Flag-value validation error raised by HTTPParams.Set (used by --http-set-param) when the argument cannot be split into exactly two '='-separated parts, so no query-parameter name/value pair can be appended.","triggerScenarios":"Thrown at http_modifier_settings.go:172 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use 'Key=Value' form, e.g. --http-set-param 'api_token=abc123'","Note the delimiter is '=', not ':' unlike header flags","Escape or quote the argument so '=' is preserved by the shell"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"251e45abd242886bb64ff2b2dc98789556b56330","analyzedAt":"2026-09-02T16:44:11.369Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}