projectdiscovery/nuclei · error
invalid parser
Error message
invalid parser
What it means
Error "invalid parser" thrown in projectdiscovery/nuclei.
Source
Thrown at pkg/catalog/loader/loader.go:446
return ok && metadata.IsValidatedFor(!parser.NoStrictSyntax)
}
// LoadTemplateTags loads template tags count using metadata index when possible.
//
// This method is optimized for tag listing (`-tgl`) and avoids loading all
// templates into the store.
func (store *Store) LoadTemplateTags() (map[string]int, error) {
defer store.saveMetadataIndexOnce()
templatePaths, errs := store.config.Catalog.GetTemplatesPath(store.finalTemplates)
store.logErroredTemplates(errs)
tagsMap := make(map[string]int)
indexFilter := store.indexFilter
templatesCache := store.parserCacheOnce()
if templatesCache == nil {
return nil, errors.New("invalid parser")
}
// Include conditions require a parsed template and cannot be evaluated from
// metadata alone.
requiresTemplateParse := len(store.config.IncludeConditions) > 0
for _, templatePath := range templatePaths {
if store.metadataIndex != nil {
if metadata, found := store.metadataIndex.Get(templatePath); found {
if !indexFilter.Matches(metadata) {
continue
}
if !requiresTemplateParse && store.metadataValidForParser(metadata) {
for _, tag := range metadata.Tags {
tagsMap[tag]++
}
continueView on GitHub (pinned to 265b3a3dec)
When it happens
Trigger: Thrown at pkg/catalog/loader/loader.go:446 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/61f0115a83dc6040.
Report an issue: GitHub.