HKUDS/nanobot · error · RuntimeError

Not connected to signal-cli daemon

Error message

Not connected to signal-cli daemon

What it means

Error "Not connected to signal-cli daemon" thrown in HKUDS/nanobot.

Source

Thrown at nanobot/channels/signal/runtime.py:1419

        self, method: str, params: dict[str, Any] | None = None
    ) -> dict[str, Any]:
        """Send a JSON-RPC request via HTTP and wait for response."""
        # Generate request ID
        self._request_id += 1
        request_id = self._request_id

        # Build JSON-RPC request
        request: dict[str, Any] = {"jsonrpc": "2.0", "method": method, "id": request_id}

        if params:
            request["params"] = params

        return await self._send_http_request(request)

    async def _send_http_request(self, request: dict[str, Any]) -> dict[str, Any]:
        """Send JSON-RPC request via HTTP."""
        if not self._http:
            raise RuntimeError("Not connected to signal-cli daemon")

        try:
            response = await self._http.post("/api/v1/rpc", json=request)
            response.raise_for_status()
            response_json = _as_json_object(response.json())
            if response_json is None:
                return {"error": {"message": "signal-cli returned a non-object JSON-RPC response"}}
            return response_json
        except Exception as e:
            self.logger.error("HTTP request failed: {}", e)
            return {"error": {"message": str(e)}}

View on GitHub (pinned to 42f37dc4c0)

When it happens

Trigger: Thrown at nanobot/channels/signal/runtime.py:1419 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of HKUDS/nanobot@42f37dc4c0 (2026-08-26). Data as JSON: /api/errors/64213f071b842a17. Report an issue: GitHub.