{"record":{"id":"37d98c9134ce93e5","repo":"netbirdio/netbird","slug":"error-getting-sync-response","errorCode":null,"errorMessage":"Error getting sync response: {}","messagePattern":"Error getting sync response: (.+?)","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"proxy/internal/debug/handler.go","lineNumber":509,"sourceCode":"func (h *Handler) inboundInfoFor(accountID types.AccountID) (InboundListenerInfo, bool) {\n\tif h.inbound == nil {\n\t\treturn InboundListenerInfo{}, false\n\t}\n\tall := h.inbound.InboundListeners()\n\tinfo, ok := all[accountID]\n\treturn info, ok\n}\n\nfunc (h *Handler) handleClientSyncResponse(w http.ResponseWriter, _ *http.Request, accountID types.AccountID, wantJSON bool) {\n\tclient, ok := h.provider.GetClient(accountID)\n\tif !ok {\n\t\thttp.Error(w, \"Client not found: \"+string(accountID), http.StatusNotFound)\n\t\treturn\n\t}\n\n\tsyncResp, err := client.GetLatestSyncResponse()\n\tif err != nil {\n\t\thttp.Error(w, \"Error getting sync response: \"+err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\tif syncResp == nil {\n\t\thttp.Error(w, \"No sync response available for client: \"+string(accountID), http.StatusNotFound)\n\t\treturn\n\t}\n\n\topts := protojson.MarshalOptions{\n\t\tEmitUnpopulated: true,\n\t\tUseProtoNames:   true,\n\t\tIndent:          \"  \",\n\t\tAllowPartial:    true,\n\t}\n\n\tjsonBytes, err := opts.Marshal(syncResp)\n\tif err != nil {\n\t\thttp.Error(w, \"Error marshaling sync response: \"+err.Error(), http.StatusInternalServerError)","sourceCodeStart":491,"sourceCodeEnd":527,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/proxy/internal/debug/handler.go#L491-L527","documentation":"Error \"Error getting sync response: {}\" thrown in netbirdio/netbird.","triggerScenarios":"Thrown at proxy/internal/debug/handler.go:509 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}