{"record":{"id":"b6cec56e8a5cc011","repo":"netbirdio/netbird","slug":"no-output-returned","errorCode":null,"errorMessage":"no output returned","messagePattern":"no output returned","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/iface/freebsd/iface.go","lineNumber":99,"sourceCode":"\n\tmtuInt, err := strconv.Atoi(mtu)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse MTU: %w\", err)\n\t}\n\n\treturn &iface{\n\t\tName:    name,\n\t\tMTU:     mtuInt,\n\t\tGroup:   group,\n\t\tIPAddrs: ips,\n\t}, nil\n}\n\nfunc parseIFName(output []byte) (string, error) {\n\t// TODO: implement without allocations\n\tlines := strings.Split(string(output), \"\\n\")\n\tif len(lines) == 0 || lines[0] == \"\" {\n\t\treturn \"\", fmt.Errorf(\"no output returned\")\n\t}\n\n\tfields := strings.Fields(lines[0])\n\tif len(fields) > 1 {\n\t\treturn \"\", fmt.Errorf(\"invalid output\")\n\t}\n\n\treturn fields[0], nil\n}\n","sourceCodeStart":81,"sourceCodeEnd":109,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/client/iface/freebsd/iface.go#L81-L109","documentation":"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.","triggerScenarios":"Thrown at client/iface/freebsd/iface.go:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the ifconfig create command actually succeeded","Capture stderr for the failure reason","Retry interface creation"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","contentChangedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}