HKUDS/nanobot · error · ChannelConnectError
missing Feishu connect session
Error message
missing Feishu connect session
What it means
Error "missing Feishu connect session" thrown in HKUDS/nanobot.
Source
Thrown at nanobot/channels/feishu/connect.py:61
"""
def __init__(self) -> None:
self._sessions: dict[str, FeishuConnectSession] = {}
self._completion_lock = threading.Lock()
async def handle(self, action: str, query: QueryParams) -> dict[str, Any]:
"""Handle one generic settings connection action."""
if action == "start":
return await asyncio.to_thread(
self.start,
domain=(query_first(query, "domain") or "feishu").strip(),
instance_id=(query_first(query, "instance_id") or "default").strip(),
mode=(query_first(query, "mode") or "replace").strip(),
)
session_id = (query_first(query, "session_id") or "").strip()
if not session_id:
raise ChannelConnectError("missing Feishu connect session")
if action == "poll":
return await asyncio.to_thread(self.poll, session_id)
if action == "cancel":
return await asyncio.to_thread(self.cancel, session_id)
raise ChannelConnectError(f"unsupported Feishu connect action: {action}", status=404)
def start(
self,
*,
domain: str = "feishu",
instance_id: str = DEFAULT_INSTANCE_ID,
mode: str = "replace",
) -> dict[str, Any]:
domain = _normalize_domain(domain)
instance_id = _resolve_instance_id(instance_id, mode)
self._cleanup()
try:
feishu._init_registration(domain)View on GitHub (pinned to 42f37dc4c0)
When it happens
Trigger: Thrown at nanobot/channels/feishu/connect.py:61 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/0f16eac5dd6e5afe.
Report an issue: GitHub.