projectdiscovery/nuclei · error

could not get value for argument %q: %s

Error message

could not get value for argument %q: %s

What it means

Error "could not get value for argument %q: %s" thrown in projectdiscovery/nuclei.

Source

Thrown at pkg/protocols/headless/engine/page_actions.go:1054

	if err != nil {
		return "", fmt.Errorf("could not replace interactsh marker for argument %q: %w", arg, err)
	}
	argValue = prepared.Text

	exprs := getExpressions(argValue, p.variables)

	err = expressions.ContainsUnresolvedVariables(exprs...)
	if err != nil {
		return "", errkit.Wrapf(err, "argument %q, value: %q", arg, argValue)
	}

	result, err := render.Render(render.Input{
		Text:         argValue,
		Values:       p.variables,
		InteractURLs: prepared.InteractURLs,
	})
	if err != nil {
		return "", fmt.Errorf("could not get value for argument %q: %s", arg, err)
	}
	p.addInteractshURL(result.InteractURLs...)

	return result.Text, nil
}

View on GitHub (pinned to 265b3a3dec)

When it happens

Trigger: Thrown at pkg/protocols/headless/engine/page_actions.go:1054 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/7190bb84fd305312. Report an issue: GitHub.