{"record":{"id":"2e196350ca8d0255","repo":"projectdiscovery/nuclei","slug":"key-not-found","errorCode":null,"errorMessage":"key not found","messagePattern":"key not found","errorType":"exception","errorClass":"ErrKeyNotFound","httpStatus":null,"severity":"error","filePath":"pkg/fuzz/component/component.go","lineNumber":22,"sourceCode":"\t\"errors\"\n\t\"strings\"\n\n\t\"github.com/leslie-qiwa/flat\"\n\t\"github.com/projectdiscovery/retryablehttp-go\"\n)\n\n// ErrSetValue is a error raised when a value cannot be set\nvar ErrSetValue = errors.New(\"could not set value\")\n\nfunc IsErrSetValue(err error) bool {\n\tif err == nil {\n\t\treturn false\n\t}\n\treturn strings.Contains(err.Error(), \"could not set value\")\n}\n\n// ErrKeyNotFound is a error raised when a key is not found\nvar ErrKeyNotFound = errors.New(\"key not found\")\n\n// Component is a component for a request\ntype Component interface {\n\t// Name returns the name of the component\n\tName() string\n\t// Parse parses the component and returns the\n\t// parsed component\n\tParse(req *retryablehttp.Request) (bool, error)\n\t// Iterate iterates over all values of a component\n\t// ex in case of query component, it will iterate over each query parameter\n\t// depending on the rule if mode is single\n\t// request is rebuilt for each value in this callback\n\t// and in case of multiple, request will be rebuilt after iteration of all values\n\tIterate(func(key string, value interface{}) error) error\n\t// SetValue sets a value in the component\n\t// for a key\n\t//\n\t// After calling setValue for mutation, the value must be","sourceCodeStart":4,"sourceCodeEnd":40,"githubUrl":"https://github.com/projectdiscovery/nuclei/blob/265b3a3dec374741614e342f813c10f8b38d2bb7/pkg/fuzz/component/component.go#L4-L40","documentation":"Error \"key not found\" thrown in projectdiscovery/nuclei.","triggerScenarios":"Thrown at pkg/fuzz/component/component.go:22 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-16T03:17:38.424Z"}