{"record":{"id":"b369ec7f8675a952","repo":"juanfont/headscale","slug":"parsing-ip-s-w","errorCode":null,"errorMessage":"parsing IP %s: %w","messagePattern":"parsing IP (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/tsic/tsic.go","lineNumber":890,"sourceCode":"\t\t\t\"ip\",\n\t\t}\n\n\t\tresult, _, err := t.Execute(command)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"%s failed to get IPs: %w\", t.hostname, err)\n\t\t}\n\n\t\tips := make([]netip.Addr, 0)\n\n\t\tfor address := range strings.SplitSeq(result, \"\\n\") {\n\t\t\taddress = strings.TrimSuffix(address, \"\\n\")\n\t\t\tif len(address) < 1 {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tip, err := netip.ParseAddr(address)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"parsing IP %s: %w\", address, err)\n\t\t\t}\n\n\t\t\tips = append(ips, ip)\n\t\t}\n\n\t\tif len(ips) == 0 {\n\t\t\treturn nil, fmt.Errorf(\"no IPs returned yet for %s\", t.hostname) //nolint:err113\n\t\t}\n\n\t\treturn ips, nil\n\t}, backoff.WithBackOff(backoff.NewExponentialBackOff()), backoff.WithMaxElapsedTime(10*time.Second))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"getting IPs for %s after retries: %w\", t.hostname, err)\n\t}\n\n\treturn ips, nil\n}\n","sourceCodeStart":872,"sourceCodeEnd":908,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/tsic/tsic.go#L872-L908","documentation":"Error \"parsing IP %s: %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/tsic/tsic.go:890 when the library encounters an invalid state.","commonSituations":"An IP string reported by the client could not be parsed. This indicates unexpected 'tailscale ip' output; check client version compatibility.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (parsing IP); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (parsing IP); 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"}