{"record":{"id":"a1e57df4e86c6b43","repo":"HKUDS/nanobot","slug":"feishu-m-type-message-was-not-delivered","errorCode":null,"errorMessage":"Feishu {m_type} message was not delivered","messagePattern":"Feishu (.+?) message was not delivered","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"nanobot/channels/feishu/runtime.py","lineNumber":2541,"sourceCode":"                            return\n                    elif first_send:\n                        # If we're not in a topic but replying to message, only first uses reply\n                        first_send = False\n                        ok = self._reply_message_sync(\n                            reply_message_id, m_type, content,\n                            reply_in_thread=self._should_use_reply_in_thread(msg.metadata),\n                        )\n                        if ok:\n                            return\n                    # Fall back to regular send if reply fails\n                message_id = self._send_message_sync(\n                    receive_id_type,\n                    msg.chat_id,\n                    m_type,\n                    content,\n                )\n                if not message_id:\n                    raise RuntimeError(f\"Feishu {m_type} message was not delivered\")\n\n            for file_path in msg.media:\n                if not os.path.isfile(file_path):\n                    self.logger.warning(\"Media file not found: {}\", file_path)\n                    continue\n                ext = os.path.splitext(file_path)[1].lower()\n                if ext in self._IMAGE_EXTS:\n                    key = await loop.run_in_executor(None, self._upload_image_sync, file_path)\n                    if key:\n                        await loop.run_in_executor(\n                            None,\n                            _do_send,\n                            \"image\",\n                            json.dumps({\"image_key\": key}, ensure_ascii=False),\n                        )\n                else:\n                    key = await loop.run_in_executor(None, self._upload_file_sync, file_path)\n                    if key:","sourceCodeStart":2523,"sourceCodeEnd":2559,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/channels/feishu/runtime.py#L2523-L2559","documentation":"Error \"Feishu {m_type} message was not delivered\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/channels/feishu/runtime.py:2541 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"}