{"record":{"id":"61f0115a83dc6040","repo":"projectdiscovery/nuclei","slug":"invalid-parser","errorCode":null,"errorMessage":"invalid parser","messagePattern":"invalid parser","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/catalog/loader/loader.go","lineNumber":446,"sourceCode":"\treturn ok && metadata.IsValidatedFor(!parser.NoStrictSyntax)\n}\n\n// LoadTemplateTags loads template tags count using metadata index when possible.\n//\n// This method is optimized for tag listing (`-tgl`) and avoids loading all\n// templates into the store.\nfunc (store *Store) LoadTemplateTags() (map[string]int, error) {\n\tdefer store.saveMetadataIndexOnce()\n\n\ttemplatePaths, errs := store.config.Catalog.GetTemplatesPath(store.finalTemplates)\n\tstore.logErroredTemplates(errs)\n\n\ttagsMap := make(map[string]int)\n\tindexFilter := store.indexFilter\n\n\ttemplatesCache := store.parserCacheOnce()\n\tif templatesCache == nil {\n\t\treturn nil, errors.New(\"invalid parser\")\n\t}\n\n\t// Include conditions require a parsed template and cannot be evaluated from\n\t// metadata alone.\n\trequiresTemplateParse := len(store.config.IncludeConditions) > 0\n\n\tfor _, templatePath := range templatePaths {\n\t\tif store.metadataIndex != nil {\n\t\t\tif metadata, found := store.metadataIndex.Get(templatePath); found {\n\t\t\t\tif !indexFilter.Matches(metadata) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tif !requiresTemplateParse && store.metadataValidForParser(metadata) {\n\t\t\t\t\tfor _, tag := range metadata.Tags {\n\t\t\t\t\t\ttagsMap[tag]++\n\t\t\t\t\t}\n\t\t\t\t\tcontinue","sourceCodeStart":428,"sourceCodeEnd":464,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/catalog/loader/loader.go#L428-L464","documentation":"Error \"invalid parser\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/catalog/loader/loader.go:446 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"265b3a3dec374741614e342f813c10f8b38d2bb7","analyzedAt":"2026-08-15T20:05:51.855Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}