{"record":{"id":"c058f75fc4a5f17d","repo":"HKUDS/nanobot","slug":"mattermost-client-is-not-started","errorCode":null,"errorMessage":"Mattermost client is not started","messagePattern":"Mattermost client is not started","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"nanobot/channels/mattermost/runtime.py","lineNumber":649,"sourceCode":"            self._stream_root_ids[stream_id] = root_id\n        committed = self._stream_committed.get(stream_id, \"\")\n        buf = committed + delta\n        self._stream_buffers[stream_id] = buf\n        self._stream_committed[stream_id] = buf\n        return\n\n    def _clear_stream_state(self, stream_id: str) -> None:\n        self._stream_root_ids.pop(stream_id, None)\n        self._stream_posts.pop(stream_id, None)\n        self._stream_buffers.pop(stream_id, None)\n        self._stream_last_content.pop(stream_id, None)\n        self._stream_committed.pop(stream_id, None)\n\n    # API helpers ---------------------------------------------------------------\n\n    def _require_http_client(self) -> httpx.AsyncClient:\n        if self._http_client is None:\n            raise RuntimeError(\"Mattermost client is not started\")\n        return self._http_client\n\n    async def _api_get(self, path: str) -> dict[str, Any]:\n        resp = await self._require_http_client().get(path)\n        resp.raise_for_status()\n        return cast(dict[str, Any], resp.json())\n\n    async def _api_post(self, path: str, json_data: dict[str, Any]) -> dict[str, Any]:\n        resp = await self._require_http_client().post(path, json=json_data)\n        resp.raise_for_status()\n        return cast(dict[str, Any], resp.json())\n\n    async def _create_post(\n        self,\n        channel_id: str,\n        message: str,\n        *,\n        root_id: str | None = None,","sourceCodeStart":631,"sourceCodeEnd":667,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/channels/mattermost/runtime.py#L631-L667","documentation":"Error \"Mattermost client is not started\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/channels/mattermost/runtime.py:649 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"}