projectdiscovery/nuclei · error
input file is empty
Error message
input file is empty
What it means
Error "input file is empty" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/input/provider/http/multiformat.go:85
return nil, errors.Wrap(err, "could not open input file")
}
inputFile = file
inputReader = file
} else {
inputReader = strings.NewReader(opts.InputContents)
}
defer func() {
if inputFile != nil {
_ = inputFile.Close()
}
}()
data, err := io.ReadAll(inputReader)
if err != nil {
return nil, errors.Wrap(err, "could not read input file")
}
if len(data) == 0 {
return nil, errors.New("input file is empty")
}
parseErr := format.Parse(bytes.NewReader(data), func(request *types.RequestResponse) bool {
count++
return false
}, opts.InputFile)
if parseErr != nil {
return nil, errors.Wrap(parseErr, "could not parse input file")
}
return &HttpInputProvider{format: format, inputData: data, inputFile: opts.InputFile, count: count}, nil
}
// Count returns the number of items for input provider
func (i *HttpInputProvider) Count() int64 {
return i.count
}
// Iterate over all inputs in orderView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/input/provider/http/multiformat.go:85 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/acc1b75347e3f027.
Report an issue: GitHub.