{"record":{"id":"a789b6024b8ae907","repo":"HKUDS/nanobot","slug":"local-gateway-did-not-become-ready-logs-result","errorCode":null,"errorMessage":"local gateway did not become ready; logs: {result.status.log_path}","messagePattern":"local gateway did not become ready; logs: (.+?)","errorType":"exception","errorClass":"TuiUnavailableError","httpStatus":null,"severity":"error","filePath":"nanobot/cli/tui_launcher.py","lineNumber":461,"sourceCode":"\n        if not wait_until_ready:\n            return _GatewayHandle(base_url=base_url, lease=lease)\n\n        deadline = time.monotonic() + 20\n        while time.monotonic() < deadline:\n            if _webui_endpoint_reachable(base_url):\n                current = runtime.status()\n                if current.running and current.port in {None, config.gateway.port}:\n                    return _GatewayHandle(base_url=base_url, lease=lease)\n                break\n            if not runtime.status().running and not _gateway_health_ready(\n                config.gateway.host,\n                config.gateway.port,\n            ):\n                break\n            time.sleep(0.1)\n\n        raise TuiUnavailableError(\n            f\"local gateway did not become ready; logs: {result.status.log_path}\"\n        )\n    except BaseException:\n        lease.release(timeout_s=5)\n        raise\n\n\ndef _tui_gateway_connection(config: Config) -> tuple[str, str]:\n    \"\"\"Read the small bootstrap subset without importing the WebSocket runtime.\"\"\"\n    raw: object = getattr(config.channels, \"websocket\", None)\n    settings = cast(dict[str, Any], raw) if isinstance(raw, dict) else {}\n    host = _host_for_local_browser(str(settings.get(\"host\") or \"127.0.0.1\"))\n    try:\n        port = int(settings.get(\"port\") or 8765)\n    except (TypeError, ValueError):\n        port = 8765\n    secret = str(\n        settings.get(\"tokenIssueSecret\")","sourceCodeStart":443,"sourceCodeEnd":479,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/cli/tui_launcher.py#L443-L479","documentation":"Error \"local gateway did not become ready; logs: {result.status.log_path}\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/cli/tui_launcher.py:461 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":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}