netbirdio/netbird · error

Error getting sync response: {}

Error message

Error getting sync response: {}

What it means

Error "Error getting sync response: {}" thrown in netbirdio/netbird.

Source

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

func (h *Handler) inboundInfoFor(accountID types.AccountID) (InboundListenerInfo, bool) {
	if h.inbound == nil {
		return InboundListenerInfo{}, false
	}
	all := h.inbound.InboundListeners()
	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)

View on GitHub (pinned to 93e97f4bf1)

When it happens

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