{"record":{"id":"7eedc65a4423999a","repo":"projectdiscovery/nuclei","slug":"requests-limit-should-be-at-least-2","errorCode":null,"errorMessage":"requests limit should be at least 2","messagePattern":"requests limit should be at least 2","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/fuzz/analyzers/time/time_delay.go","lineNumber":56,"sourceCode":"type requestsSentMetadata struct {\n\tdelay         int\n\tdelayReceived float64\n}\n\n// checkTimingDependency checks the timing dependency for a given request\n//\n// It alternates and sends first a high request, then a low request. Each time\n// it checks if the delay of the application can be predictably controlled.\nfunc checkTimingDependency(\n\trequestsLimit int,\n\thighSleepTimeSeconds int,\n\tcorrelationErrorRange float64,\n\tslopeErrorRange float64,\n\tbaselineDelay float64,\n\trequestSender timeDelayRequestSender,\n) (bool, string, error) {\n\tif requestsLimit < 2 {\n\t\treturn false, \"\", errors.New(\"requests limit should be at least 2\")\n\t}\n\n\tregression := newSimpleLinearRegression()\n\trequestsLeft := requestsLimit\n\n\tvar requestsSent []requestsSentMetadata\n\tfor requestsLeft > 0 {\n\t\tisCorrelationPossible, delayReceived, err := sendRequestAndTestConfidence(regression, highSleepTimeSeconds, requestSender, baselineDelay)\n\t\tif err != nil {\n\t\t\treturn false, \"\", err\n\t\t}\n\t\tif !isCorrelationPossible {\n\t\t\treturn false, \"\", nil\n\t\t}\n\t\t// Check the delay is greater than baseline by seconds requested\n\t\tif delayReceived < baselineDelay+float64(highSleepTimeSeconds)*0.8 {\n\t\t\treturn false, \"\", nil\n\t\t}","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/fuzz/analyzers/time/time_delay.go#L38-L74","documentation":"Error \"requests limit should be at least 2\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/fuzz/analyzers/time/time_delay.go:56 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"}