HKUDS/nanobot · error · RuntimeError
Feishu / Lark registration does not support client_secret au
Error message
Feishu / Lark registration does not support client_secret auth. Supported: {methods} What it means
Error "Feishu / Lark registration does not support client_secret auth. Supported: {methods}" thrown in HKUDS/nanobot.
Source
Thrown at nanobot/channels/feishu/runtime.py:528
data=body,
timeout=_ONBOARD_REQUEST_TIMEOUT_S,
headers={"Content-Type": "application/x-www-form-urlencoded"},
)
try:
parsed = resp.json()
return _as_json_object(parsed) or {}
except json.JSONDecodeError:
resp.raise_for_status()
return {}
def _init_registration(domain: str = "feishu") -> None:
"""Verify the environment supports client_secret auth. Raises RuntimeError if not."""
base_url = _accounts_base_url(domain)
res = _post_registration(base_url, {"action": "init"})
methods = _as_json_list(res.get("supported_auth_methods")) or []
if "client_secret" not in methods:
raise RuntimeError(
f"Feishu / Lark registration does not support client_secret auth. "
f"Supported: {methods}"
)
def _begin_registration(domain: str = "feishu") -> _RegistrationStart:
"""Start the device-code flow. Returns device_code, qr_url, interval, expire_in."""
base_url = _accounts_base_url(domain)
res = _post_registration(base_url, {
"action": "begin",
"archetype": "PersonalAgent",
"auth_method": "client_secret",
"request_user_info": "open_id",
})
device_code = res.get("device_code")
if not isinstance(device_code, str) or not device_code:
raise RuntimeError("Feishu / Lark registration did not return a device_code")
qr_url = res.get("verification_uri_complete", "")View on GitHub (pinned to 42f37dc4c0)
When it happens
Trigger: Thrown at nanobot/channels/feishu/runtime.py:528 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/000a4ad6f497e6bb.
Report an issue: GitHub.