netbirdio/netbird · error

No sync response available for client

Error message

No sync response available for client: {}

What it means

Fires in handleClientSyncResponse when GetLatestSyncResponse succeeds but returns a nil response — the client exists and the retrieval worked, yet no sync response has been stored yet. This is the expected state for a client that has not yet received its first NetworkMap from management, rendered as a 404 in the debug UI.

Solutions

  1. Wait for the client to complete its first management sync and retry
  2. Verify the client is connected to management (check the status tab)
  3. Trigger a sync by restarting the client or waiting for the sync interval
  4. If the client shows connected but no sync response persists, inspect management-side delivery
Defensive patterns

Strategy: fallback

When it happens

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

Appendix: source

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

	info, ok := all[accountID]
	return info, ok
}

func (h *Handler) handleClientSyncResponse(w http.ResponseWriter, _ *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
	}

	syncResp, err := client.GetLatestSyncResponse()
	if err != nil {
		http.Error(w, "Error getting sync response: "+err.Error(), http.StatusInternalServerError)
		return
	}

	if syncResp == nil {
		http.Error(w, "No sync response available for client: "+string(accountID), http.StatusNotFound)
		return
	}

	opts := protojson.MarshalOptions{
		EmitUnpopulated: true,
		UseProtoNames:   true,
		Indent:          "  ",
		AllowPartial:    true,
	}

	jsonBytes, err := opts.Marshal(syncResp)
	if err != nil {
		http.Error(w, "Error marshaling sync response: "+err.Error(), http.StatusInternalServerError)
		return
	}

	if wantJSON {
		w.Header().Set("Content-Type", "application/json")

View on GitHub (pinned to 93e97f4bf1)