netbirdio/netbird · error
no output returned
Error message
no output returned
What it means
Guard in parseIFName: the command output was empty or its first line was blank, so there is no interface name to extract. Callers (create, rename) use this to detect that ifconfig produced no usable response rather than a malformed one.
Solutions
- Check whether the ifconfig create command actually succeeded
- Capture stderr for the failure reason
- Retry interface creation
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at client/iface/freebsd/iface.go:99 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/b6cec56e8a5cc011.
Report an issue: GitHub.
Appendix: source
Thrown at client/iface/freebsd/iface.go:99
mtuInt, err := strconv.Atoi(mtu)
if err != nil {
return nil, fmt.Errorf("failed to parse MTU: %w", err)
}
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)