{"record":{"id":"7ee0c38e7c952770","repo":"projectdiscovery/nuclei","slug":"invalid-query-in-queryauth-s","errorCode":null,"errorMessage":"invalid query in queryAuth: %s","messagePattern":"invalid query in queryAuth: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/authprovider/authx/file.go","lineNumber":141,"sourceCode":"\t\t\treturn fmt.Errorf(\"cookies cannot be empty in cookies auth\")\n\t\t}\n\t\tfor _, cookie := range s.Cookies {\n\t\t\tif cookie.Raw != \"\" && !s.skipCookieParse {\n\t\t\t\tif err := cookie.Parse(); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"invalid raw cookie in cookiesAuth: %s\", err)\n\t\t\t\t}\n\t\t\t}\n\t\t\tif err := cookie.Validate(); err != nil {\n\t\t\t\treturn fmt.Errorf(\"invalid cookie in cookiesAuth: %s\", err)\n\t\t\t}\n\t\t}\n\tcase strings.EqualFold(s.Type, string(QueryAuth)):\n\t\tif len(s.Params) == 0 {\n\t\t\treturn fmt.Errorf(\"query cannot be empty in query auth\")\n\t\t}\n\t\tfor _, query := range s.Params {\n\t\t\tif err := query.Validate(); err != nil {\n\t\t\t\treturn fmt.Errorf(\"invalid query in queryAuth: %s\", err)\n\t\t\t}\n\t\t}\n\tdefault:\n\t\treturn fmt.Errorf(\"invalid type: %s\", s.Type)\n\t}\n\treturn nil\n}\n\ntype KV struct {\n\tKey   string `json:\"key\" yaml:\"key\"` // Header key (preserves exact casing)\n\tValue string `json:\"value\" yaml:\"value\"`\n}\n\nfunc (k *KV) Validate() error {\n\tif k.Key == \"\" {\n\t\treturn fmt.Errorf(\"key cannot be empty\")\n\t}\n\tif k.Value == \"\" {","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/authprovider/authx/file.go#L123-L159","documentation":"Error \"invalid query in queryAuth: %s\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/authprovider/authx/file.go:141 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":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}