{"record":{"id":"7e73fa3f850d28ac","repo":"projectdiscovery/nuclei","slug":"dast-server-token-must-be-at-least-16-characters-l","errorCode":null,"errorMessage":"DAST server token must be at least 16 characters long","messagePattern":"DAST server token must be at least 16 characters long","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/runner/options.go","lineNumber":297,"sourceCode":"\treturn missing\n}\n\nfunc validateMissingGitLabOptions(options *types.Options) []string {\n\tvar missing []string\n\tif options.GitLabToken == \"\" {\n\t\tmissing = append(missing, \"GITLAB_TOKEN\")\n\t}\n\tif len(options.GitLabTemplateRepositoryIDs) == 0 {\n\t\tmissing = append(missing, \"GITLAB_REPOSITORY_IDS\")\n\t}\n\n\treturn missing\n}\n\nfunc validateDASTOptions(options *types.Options) error {\n\t// Ensure the DAST server token meets minimum length requirement\n\tif len(options.DASTServerToken) > 0 && len(options.DASTServerToken) < 16 {\n\t\treturn fmt.Errorf(\"DAST server token must be at least 16 characters long\")\n\t}\n\treturn nil\n}\n\n// LoadReportingOptionsFromBytes parses YAML reporting-config bytes into a\n// *reporting.Options with env-var expansion, matching the CLI's -report-config.\nfunc LoadReportingOptionsFromBytes(data []byte) (*reporting.Options, error) {\n\treportingOptions := &reporting.Options{}\n\tif err := yaml.DecodeAndValidate(bytes.NewReader(data), reportingOptions); err != nil {\n\t\treturn nil, errors.Wrap(err, \"could not parse reporting config file\")\n\t}\n\tWalk(reportingOptions, expandEndVars)\n\treturn reportingOptions, nil\n}\n\nfunc createReportingOptions(options *types.Options) (*reporting.Options, error) {\n\tvar reportingOptions = &reporting.Options{}\n\tif options.ReportingConfig != \"\" {","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/internal/runner/options.go#L279-L315","documentation":"Error \"DAST server token must be at least 16 characters long\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at internal/runner/options.go:297 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"}