HKUDS/nanobot · error · RuntimeError
Matrix message was not delivered: {response}
Error message
Matrix message was not delivered: {response} What it means
Error "Matrix message was not delivered: {response}" thrown in HKUDS/nanobot.
Source
Thrown at nanobot/channels/matrix/runtime.py:621
if candidates:
limit_bytes = await self._effective_media_limit_bytes()
for path in candidates:
if fail := await self._upload_and_send_attachment(
room_id=msg.chat_id,
path=path,
limit_bytes=limit_bytes,
relates_to=relates_to,
):
failures.append(fail)
if failures:
text = f"{text.rstrip()}\n{chr(10).join(failures)}" if text.strip() else "\n".join(failures)
if text.strip():
content = _build_matrix_text_content(text)
if relates_to:
content["m.relates_to"] = relates_to
response = await self._send_room_content(msg.chat_id, content)
if isinstance(response, RoomSendError):
raise RuntimeError(f"Matrix message was not delivered: {response}")
finally:
if not is_progress:
await self._stop_typing_keepalive(msg.chat_id, clear_typing=True)
async def send_delta(
self,
chat_id: str,
delta: str,
metadata: dict[str, Any] | None = None,
*,
stream_id: str | None = None,
stream_end: bool = False,
resuming: bool = False,
merge_next: bool = False,
) -> None:
relates_to = self._build_thread_relates_to(metadata)
if stream_end and merge_next:View on GitHub (pinned to 42f37dc4c0)
When it happens
Trigger: Thrown at nanobot/channels/matrix/runtime.py:621 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/312c1e1213ae9496.
Report an issue: GitHub.