{"record":{"id":"8e2f07231eefcbaa","repo":"projectdiscovery/nuclei","slug":"no-template-name-field-provided","errorCode":null,"errorMessage":"no template name field provided","messagePattern":"no template name field provided","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/templates/compile.go","lineNumber":548,"sourceCode":"\n\tswitch config.GetTemplateFormatFromExt(template.Path) {\n\tcase config.JSON:\n\t\terr = json.Unmarshal(data, template)\n\tcase config.YAML:\n\t\terr = yaml.Unmarshal(data, template)\n\tdefault:\n\t\t// assume its yaml\n\t\tif err = yaml.Unmarshal(data, template); err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tif err != nil {\n\t\treturn nil, errkit.Wrapf(err, \"failed to parse %s\", template.Path)\n\t}\n\n\tif utils.IsBlank(template.Info.Name) {\n\t\treturn nil, errors.New(\"no template name field provided\")\n\t}\n\n\tif template.Info.Authors.IsEmpty() {\n\t\treturn nil, errors.New(\"no template author field provided\")\n\t}\n\n\tnumberOfWorkflows := len(template.Workflows)\n\tif numberOfWorkflows > 0 && numberOfWorkflows != template.Requests() {\n\t\treturn nil, errors.New(\"workflows cannot have other protocols\")\n\t}\n\n\t// use default unknown severity\n\tif len(template.Workflows) == 0 {\n\t\tif template.Info.SeverityHolder.Severity == severity.Undefined {\n\t\t\t// set unknown severity with counter and forced warning\n\t\t\ttemplate.Info.SeverityHolder.Severity = severity.Unknown\n\t\t\tif options.Options.Validate {\n\t\t\t\t// when validating return error","sourceCodeStart":530,"sourceCodeEnd":566,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/templates/compile.go#L530-L566","documentation":"Error \"no template name field provided\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/templates/compile.go:548 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"}