projectdiscovery/nuclei · error · ErrNoVarsDumpFile

no required params file found

Error message

no required params file found

What it means

Error "no required params file found" thrown in projectdiscovery/nuclei.

Source

Thrown at pkg/input/formats/formats.go:63

	// function for each RawRequest it discovers.
	Parse(input io.Reader, resultsCb ParseReqRespCallback, filePath string) error
	// SetOptions sets the options for the input format
	SetOptions(options InputFormatOptions)
}

// SpecDownloader is an interface for downloading API specifications from URLs
type SpecDownloader interface {
	// Download downloads the spec from the given URL and saves it to tmpDir
	// Returns the path to the downloaded file
	// httpClient is a retryablehttp.Client instance (can be nil for fallback)
	Download(url, tmpDir string, httpClient *retryablehttp.Client) (string, error)
	// SupportedExtensions returns the list of supported file extensions
	SupportedExtensions() []string
}

var (
	DefaultVarDumpFileName = "required_openapi_params.yaml"
	ErrNoVarsDumpFile      = errors.New("no required params file found")
)

// == OpenAPIParamsCfgFile ==
// this file is meant to be used in CLI mode
// to be more interactive and user-friendly when
// running nuclei with openapi format

// OpenAPIParamsCfgFile is the structure of the required vars dump file
type OpenAPIParamsCfgFile struct {
	Var          []string `yaml:"var"`
	OptionalVars []string `yaml:"-"` // this will be written to the file as comments
}

// ReadOpenAPIVarDumpFile reads the required vars dump file
func ReadOpenAPIVarDumpFile() (*OpenAPIParamsCfgFile, error) {
	var vars OpenAPIParamsCfgFile
	if !fileutil.FileExists(DefaultVarDumpFileName) {
		return nil, ErrNoVarsDumpFile

View on GitHub (pinned to 265b3a3dec)

When it happens

Trigger: Thrown at pkg/input/formats/formats.go:63 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/f204519c0b05328c. Report an issue: GitHub.