{"record":{"id":"1131d2df1a324e03","repo":"chenhg5/cc-connect","slug":"no-binding-found","errorCode":null,"errorMessage":"no binding found","messagePattern":"no binding found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"core/api.go","lineNumber":829,"sourceCode":"\t}\n\n\ts.relay.Bind(req.Platform, req.ChatID, req.Bots)\n\tapiJSON(w, http.StatusOK, map[string]string{\"status\": \"ok\"})\n}\n\nfunc (s *APIServer) handleRelayBinding(w http.ResponseWriter, r *http.Request) {\n\tif s.relay == nil {\n\t\thttp.Error(w, \"relay not available\", http.StatusServiceUnavailable)\n\t\treturn\n\t}\n\tchatID := r.URL.Query().Get(\"chat_id\")\n\tif chatID == \"\" {\n\t\thttp.Error(w, \"chat_id is required\", http.StatusBadRequest)\n\t\treturn\n\t}\n\tbinding := s.relay.GetBinding(chatID)\n\tif binding == nil {\n\t\thttp.Error(w, \"no binding found\", http.StatusNotFound)\n\t\treturn\n\t}\n\tapiJSON(w, http.StatusOK, binding)\n}\n","sourceCodeStart":811,"sourceCodeEnd":834,"githubUrl":"https://github.com/chenhg5/cc-connect/blob/4000b2338aa6e850c99df54f8b0ed6ed7460b401/core/api.go#L811-L834","documentation":"HTTP 404 response from the relay-binding API endpoint: a chat_id was supplied but relay.GetBinding returned nil, meaning no bots have been bound to that chat yet.","triggerScenarios":"Thrown at core/api.go:829 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the binding first via the relay bind endpoint with that chat_id","Double-check the chat_id for typos against the bound chats"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4000b2338aa6e850c99df54f8b0ed6ed7460b401","analyzedAt":"2026-09-06T11:45:09.575Z","contentChangedAt":"2026-09-06T11:45:09.575Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}