{"record":{"id":"955e315e8bfebba3","repo":"HKUDS/nanobot","slug":"signal-cli-send-failed-response-error","errorCode":null,"errorMessage":"signal-cli send failed: {response['error']}","messagePattern":"signal-cli send failed: (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"nanobot/channels/signal/runtime.py","lineNumber":589,"sourceCode":"            if not plain_text and not msg.media:\n                return\n            recipient_params = self._recipient_params(msg.chat_id)\n\n            chunks = split_message(plain_text, self._MAX_MESSAGE_LEN) if plain_text else [\"\"]\n            chunk_styles = _partition_styles(plain_text, chunks, text_styles)\n            for i, chunk in enumerate(chunks):\n                params: dict[str, Any] = {\"message\": chunk}\n                if chunk_styles[i]:\n                    params[\"textStyle\"] = chunk_styles[i]\n                params.update(recipient_params)\n                if msg.media and i == 0:\n                    params[\"attachments\"] = msg.media\n\n                response = await self._send_request(\"send\", params)\n\n                if \"error\" in response:\n                    self.logger.error(\"Error sending Signal message: {}\", response['error'])\n                    raise RuntimeError(f\"signal-cli send failed: {response['error']}\")\n                else:\n                    self.logger.debug(\n                        f\"Signal message sent, timestamp: {response.get('result', {}).get('timestamp')}\"\n                    )\n\n        except Exception:\n            self.logger.exception(\"Error sending Signal message\")\n            raise\n        finally:\n            # Keep typing active across progress updates; stop on the final reply.\n            if not is_progress_message:\n                # Avoid immediate START->STOP for fast responses, which can be invisible\n                # in some Signal clients. Let indicator expire naturally (~15s).\n                await self._stop_typing(msg.chat_id, send_stop=False)\n\n    async def _sse_receive_loop(self) -> None:\n        \"\"\"Receive messages via Server-Sent Events (HTTP mode).\"\"\"\n        if not self._http:","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/channels/signal/runtime.py#L571-L607","documentation":"Error \"signal-cli send failed: {response['error']}\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/channels/signal/runtime.py:589 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"}