projectdiscovery/nuclei · error

no rule was applicable for this request: %v

Error message

no rule was applicable for this request: %v

What it means

Error "no rule was applicable for this request: %v" thrown in projectdiscovery/nuclei.

Source

Thrown at pkg/protocols/http/request_fuzz.go:171

			input.AnalyzerParams = request.Analyzer.Parameters
		}
		err := rule.Execute(input)
		if err == nil {
			applicable = true
			continue
		}
		if fuzz.IsErrRuleNotApplicable(err) {
			gologger.Verbose().Msgf("[%s] fuzz: %s\n", request.options.TemplateID, err)
			continue
		}
		if err == types.ErrNoMoreRequests {
			return nil
		}
		return errors.Wrap(err, "could not execute rule")
	}

	if !applicable {
		return fmt.Errorf("no rule was applicable for this request: %v", input.MetaInput.Input)
	}

	return nil
}

// executeGeneratedFuzzingRequest executes a generated fuzzing request after building it using rules and payloads
func (request *Request) executeGeneratedFuzzingRequest(gr fuzz.GeneratedRequest, input *contextargs.Context, callback protocols.OutputEventCallback) bool {
	hasInteractMatchers := interactsh.HasMatchers(request.CompiledOperators)
	hasInteractMarkers := len(gr.InteractURLs) > 0
	if request.options.HostErrorsCache != nil && request.options.HostErrorsCache.Check(request.options.ProtocolType.String(), input) {
		return false
	}
	// Extract hostname for per-host rate limiting: prefer the concrete fuzzed
	// request URL (rules may change host/port), fall back to the input target
	hostname := input.MetaInput.Input
	if gr.Request != nil && gr.Request.Request != nil && gr.Request.Request.URL != nil {
		hostname = gr.Request.Request.URL.String()
	}

View on GitHub (pinned to 265b3a3dec)

When it happens

Trigger: Thrown at pkg/protocols/http/request_fuzz.go:171 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of projectdiscovery/nuclei@265b3a3dec (2026-08-15). Data as JSON: /api/errors/de7afae15e47a8c6. Report an issue: GitHub.