{"record":{"id":"fa78dcddc6a7c5ce","repo":"juanfont/headscale","slug":"w-q-tracked-in-s","errorCode":null,"errorMessage":"%w: %q tracked in %s","messagePattern":"%w: %q tracked in (.+?)","errorType":"validation","errorClass":"ErrNodeAttrUnsupported","httpStatus":null,"severity":"error","filePath":"hscontrol/policy/v2/types.go","lineNumber":2714,"sourceCode":"\t\t\t\terr := p.TagOwners.Contains(t)\n\t\t\t\tif err != nil {\n\t\t\t\t\terrs = append(errs, err)\n\t\t\t\t}\n\t\t\tcase *Username, *Prefix, Asterix:\n\t\t\t\t// User / prefix / wildcard targets are accepted at\n\t\t\t\t// parse time and resolved at compile time (where a\n\t\t\t\t// typo'd username surfaces as a propagated Resolve\n\t\t\t\t// error from compileNodeAttrs). Mirrors the grant\n\t\t\t\t// source-side validation shape.\n\t\t\tdefault:\n\t\t\t\terrs = append(errs, fmt.Errorf(\"%w: %q (%T)\", ErrNodeAttrTargetUnsupported, target, target))\n\t\t\t}\n\t\t}\n\n\t\tfor _, attr := range na.Attrs {\n\t\t\tissue, ok := nodeAttrUnsupportedCaps[attr]\n\t\t\tif ok {\n\t\t\t\terrs = append(errs, fmt.Errorf(\"%w: %q tracked in %s\", ErrNodeAttrUnsupported, attr, issue))\n\t\t\t}\n\t\t}\n\n\t\tif len(na.IPPool) > 0 {\n\t\t\terrs = append(errs, ErrNodeAttrIPPoolUnsupported)\n\t\t}\n\n\t\tfor _, prefix := range na.IPPool {\n\t\t\terr := validateNodeAttrIPPool(prefix)\n\t\t\tif err != nil {\n\t\t\t\terrs = append(errs, err)\n\t\t\t}\n\t\t}\n\t}\n\n\tfor _, tagOwners := range p.TagOwners {\n\t\tfor _, tagOwner := range tagOwners {\n\t\t\tswitch tagOwner := tagOwner.(type) {","sourceCodeStart":2696,"sourceCodeEnd":2732,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/hscontrol/policy/v2/types.go#L2696-L2732","documentation":"Error \"%w: %q tracked in %s\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at hscontrol/policy/v2/types.go:2714 when the library encounters an invalid state.","commonSituations":"A policy element is already tracked/defined elsewhere. Remove the duplicate entry (e.g. repeated alias or tag definition).","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (); retry the operation after fixing the input, configuration, or environment.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"565fd254d06c4c7f9a8cad1714a43445c79ba420","analyzedAt":"2026-08-15T13:12:30.133Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}