{"record":{"id":"c482dd8de0261c7b","repo":"netbirdio/netbird","slug":"client-not-found","errorCode":null,"errorMessage":"Client not found: {}","messagePattern":"Client not found: (.+?)","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"proxy/internal/debug/handler.go","lineNumber":425,"sourceCode":"\t\t\tServices:  services,\n\t\t\tAge:       time.Since(info.CreatedAt).Round(time.Second).String(),\n\t\t\tStatus:    status,\n\t\t})\n\t}\n\n\th.renderTemplate(w, \"clients\", data)\n}\n\ntype clientDetailData struct {\n\tAccountID string\n\tActiveTab string\n\tContent   string\n}\n\nfunc (h *Handler) handleClientStatus(w http.ResponseWriter, r *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\tfullStatus, err := client.Status()\n\tif err != nil {\n\t\thttp.Error(w, \"Error getting status: \"+err.Error(), http.StatusInternalServerError)\n\t\treturn\n\t}\n\n\t// Parse filter parameters\n\tquery := r.URL.Query()\n\tstatusFilter := query.Get(\"filter-by-status\")\n\tconnectionTypeFilter := query.Get(\"filter-by-connection-type\")\n\n\tvar prefixNamesFilter []string\n\tvar prefixNamesFilterMap map[string]struct{}\n\tif names := query.Get(\"filter-by-names\"); names != \"\" {\n\t\tprefixNamesFilter = strings.Split(names, \",\")","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/netbirdio/netbird/blob/93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c/proxy/internal/debug/handler.go#L407-L443","documentation":"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.","triggerScenarios":"Thrown at proxy/internal/debug/handler.go:425 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Return to the clients list page and select a currently registered client","Verify the account ID in the URL matches an active client","Check whether the client was disconnected or its registration removed","Refresh the debug UI so it reflects current client registrations"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e97f4bf1ad715072dcb3fb6cdb1763431b5a9c","analyzedAt":"2026-08-16T03:09:19.136Z","contentChangedAt":"2026-08-16T03:09:19.136Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}