{"record":{"id":"64213f071b842a17","repo":"HKUDS/nanobot","slug":"not-connected-to-signal-cli-daemon","errorCode":null,"errorMessage":"Not connected to signal-cli daemon","messagePattern":"Not connected to signal-cli daemon","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"nanobot/channels/signal/runtime.py","lineNumber":1419,"sourceCode":"        self, method: str, params: dict[str, Any] | None = None\n    ) -> dict[str, Any]:\n        \"\"\"Send a JSON-RPC request via HTTP and wait for response.\"\"\"\n        # Generate request ID\n        self._request_id += 1\n        request_id = self._request_id\n\n        # Build JSON-RPC request\n        request: dict[str, Any] = {\"jsonrpc\": \"2.0\", \"method\": method, \"id\": request_id}\n\n        if params:\n            request[\"params\"] = params\n\n        return await self._send_http_request(request)\n\n    async def _send_http_request(self, request: dict[str, Any]) -> dict[str, Any]:\n        \"\"\"Send JSON-RPC request via HTTP.\"\"\"\n        if not self._http:\n            raise RuntimeError(\"Not connected to signal-cli daemon\")\n\n        try:\n            response = await self._http.post(\"/api/v1/rpc\", json=request)\n            response.raise_for_status()\n            response_json = _as_json_object(response.json())\n            if response_json is None:\n                return {\"error\": {\"message\": \"signal-cli returned a non-object JSON-RPC response\"}}\n            return response_json\n        except Exception as e:\n            self.logger.error(\"HTTP request failed: {}\", e)\n            return {\"error\": {\"message\": str(e)}}\n","sourceCodeStart":1401,"sourceCodeEnd":1431,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/channels/signal/runtime.py#L1401-L1431","documentation":"Sentinel guard in _send_request: the Signal channel's HTTP client is not initialized (channel not started or already stopped), so the JSON-RPC request to the signal-cli daemon cannot be sent. The faulty input is channel lifecycle state, not the RPC method/params.","triggerScenarios":"Thrown at nanobot/channels/signal/runtime.py:1419 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the Signal channel before sending messages or typing indicators","Check startup logs — an earlier connection failure left _http unset","Restart the bot if the channel was stopped while requests were still in flight"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","contentChangedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}