netbirdio/netbird · error

Client not found

Error message

Client not found: {}

What it means

Fires in handleClientStatus when the debug handler's provider.GetClient(accountID) finds no client registered under the requested account ID. The accountID comes from the debug UI route path, so a stale page, typo, or a client that has disconnected/deregistered triggers the 404. Generic guard on an unknown lookup key.

Solutions

  1. Return to the clients list page and select a currently registered client
  2. Verify the account ID in the URL matches an active client
  3. Check whether the client was disconnected or its registration removed
  4. Refresh the debug UI so it reflects current client registrations
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

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

			Services:  services,
			Age:       time.Since(info.CreatedAt).Round(time.Second).String(),
			Status:    status,
		})
	}

	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, ",")

View on GitHub (pinned to 93e97f4bf1)