{"record":{"id":"70c481a015b3b25c","repo":"projectdiscovery/nuclei","slug":"race-and-req-condition-can-t-be-used-together","errorCode":null,"errorMessage":"'race' and 'req-condition' can't be used together","messagePattern":"'race' and 'req-condition' can't be used together","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/protocols/http/validate.go","lineNumber":7,"sourceCode":"package http\n\nimport \"github.com/pkg/errors\"\n\nfunc (request *Request) validate() error {\n\tif request.Race && request.NeedsRequestCondition() {\n\t\treturn errors.New(\"'race' and 'req-condition' can't be used together\")\n\t}\n\n\tif len(request.Fuzzing) > 0 && request.NeedsRequestCondition() {\n\t\treturn errors.New(\"'fuzzing' and 'request-condition' can't be used together\")\n\t}\n\n\tif request.Redirects && request.HostRedirects {\n\t\treturn errors.New(\"'redirects' and 'host-redirects' can't be used together\")\n\t}\n\n\tif request.ProtocolRedirects && !request.Redirects && !request.HostRedirects {\n\t\treturn errors.New(\"'protocol-redirects' requires 'redirects' or 'host-redirects' to be enabled\")\n\t}\n\n\treturn nil\n}\n","sourceCodeStart":1,"sourceCodeEnd":24,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/protocols/http/validate.go#L1-L24","documentation":"Error \"'race' and 'req-condition' can't be used together\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/protocols/http/validate.go:7 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"}