netbirdio/netbird · error

Error getting status

Error message

Error getting status: {}

What it means

Fires in handleClientStatus when client.Status() returns an error while collecting the full peer status from the embedded client. The client exists (GetClient succeeded) but its internal status snapshot failed — typically because the agent engine is not running, is starting up, or a subsystem behind the status call errored.

Solutions

  1. Check whether the NetBird client/daemon is actually running and connected (netbird status)
  2. Inspect the wrapped err in the response/log for the failing subsystem
  3. Wait for the engine to finish starting and retry
  4. Restart the client if status remains unobtainable
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at proxy/internal/debug/handler.go:431 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/ea4e896a687a877d. Report an issue: GitHub.

Appendix: source

Thrown at proxy/internal/debug/handler.go:431

	h.renderTemplate(w, "clients", data)
}

type clientDetailData struct {
	AccountID string
	ActiveTab string
	Content   string
}

func (h *Handler) handleClientStatus(w http.ResponseWriter, r *http.Request, accountID types.AccountID, wantJSON bool) {
	client, ok := h.provider.GetClient(accountID)
	if !ok {
		http.Error(w, "Client not found: "+string(accountID), http.StatusNotFound)
		return
	}

	fullStatus, err := client.Status()
	if err != nil {
		http.Error(w, "Error getting status: "+err.Error(), http.StatusInternalServerError)
		return
	}

	// Parse filter parameters
	query := r.URL.Query()
	statusFilter := query.Get("filter-by-status")
	connectionTypeFilter := query.Get("filter-by-connection-type")

	var prefixNamesFilter []string
	var prefixNamesFilterMap map[string]struct{}
	if names := query.Get("filter-by-names"); names != "" {
		prefixNamesFilter = strings.Split(names, ",")
		prefixNamesFilterMap = make(map[string]struct{})
		for _, name := range prefixNamesFilter {
			prefixNamesFilterMap[strings.ToLower(strings.TrimSpace(name))] = struct{}{}
		}
	}

View on GitHub (pinned to 93e97f4bf1)