netbirdio/netbird · error
invalid output
Error message
invalid output
What it means
Guard in parseIFName: the first line of the output splits into more than one field, so it is not a bare interface name as expected. This signals unexpected ifconfig output format; parseIFName refuses to return a possibly wrong name.
Solutions
- Log the full output to see the extra content
- Adjust parsing for the host's ifconfig variant
- Re-run the create/rename step
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at client/iface/freebsd/iface.go:104 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of netbirdio/netbird@93e97f4bf1 (2026-08-16).
Data as JSON: /api/errors/cede50056ec34265.
Report an issue: GitHub.
Appendix: source
Thrown at client/iface/freebsd/iface.go:104
return &iface{
Name: name,
MTU: mtuInt,
Group: group,
IPAddrs: ips,
}, nil
}
func parseIFName(output []byte) (string, error) {
// TODO: implement without allocations
lines := strings.Split(string(output), "\n")
if len(lines) == 0 || lines[0] == "" {
return "", fmt.Errorf("no output returned")
}
fields := strings.Fields(lines[0])
if len(fields) > 1 {
return "", fmt.Errorf("invalid output")
}
return fields[0], nil
}
View on GitHub (pinned to 93e97f4bf1)