{"record":{"id":"58a691f45d93ae6b","repo":"juanfont/headscale","slug":"s-failed-to-get-ips-w","errorCode":null,"errorMessage":"%s failed to get IPs: %w","messagePattern":"(.+?) failed to get IPs: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"integration/tsic/tsic.go","lineNumber":877,"sourceCode":"\treturn dockertestutil.ReconnectContainerToNetwork(t.pool, network, t.hostname)\n}\n\n// IPs returns the [netip.Addr] of the Tailscale instance.\nfunc (t *TailscaleInContainer) IPs() ([]netip.Addr, error) {\n\tif len(t.ips) != 0 {\n\t\treturn t.ips, nil\n\t}\n\n\t// Retry with exponential backoff to handle eventual consistency\n\tips, err := backoff.Retry(context.Background(), func() ([]netip.Addr, error) {\n\t\tcommand := []string{\n\t\t\ttailscaleBin,\n\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","sourceCodeStart":859,"sourceCodeEnd":895,"githubUrl":"https://github.com/juanfont/headscale/blob/565fd254d06c4c7f9a8cad1714a43445c79ba420/integration/tsic/tsic.go#L859-L895","documentation":"Error \"%s failed to get IPs: %w\" thrown in juanfont/headscale.","triggerScenarios":"Thrown at integration/tsic/tsic.go:877 when the library encounters an invalid state.","commonSituations":"Retrieving the node's Tailscale IPs failed. Ensure the node is up and 'tailscale status' works inside the container.","solutions":["Inspect the wrapped error for the underlying cause and correct the failing condition (failed to get IPs); retry the operation after fixing the input, configuration, or environment."],"exampleFix":"Inspect the wrapped error for the underlying cause and correct the failing condition (failed to get IPs); 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-15T17:31:12.345Z"}