{"record":{"id":"9e8289cfccdfabb5","repo":"HKUDS/nanobot","slug":"minimax-image-generation-failed-detail","errorCode":null,"errorMessage":"MiniMax image generation failed: {detail}","messagePattern":"MiniMax image generation failed: (.+?)","errorType":"exception","errorClass":"ImageGenerationError","httpStatus":null,"severity":"error","filePath":"nanobot/providers/image_generation.py","lineNumber":1067,"sourceCode":"\n    async def _generate_with_client(\n        self,\n        body: dict[str, Any],\n        headers: dict[str, str],\n    ) -> GeneratedImageResponse:\n        url = f\"{self.api_base}/image_generation\"\n        try:\n            response = await self._http_post(url, headers=headers, body=body)\n        except httpx.TimeoutException as exc:\n            raise ImageGenerationError(\"MiniMax image generation timed out\") from exc\n        except httpx.RequestError as exc:\n            raise ImageGenerationError(f\"MiniMax image generation request failed: {exc}\") from exc\n\n        try:\n            response.raise_for_status()\n        except httpx.HTTPStatusError as exc:\n            detail = response.text[:500]\n            raise ImageGenerationError(f\"MiniMax image generation failed: {detail}\") from exc\n\n        payload = response.json()\n        images = _minimax_images_from_payload(payload)\n\n        self._require_images(images, payload)\n\n        return GeneratedImageResponse(images=images, content=\"\", raw=payload)\n\n\ndef _minimax_images_from_payload(payload: dict[str, Any]) -> list[str]:\n    \"\"\"Extract base64 images from MiniMax API response.\n\n    MiniMax returns images in ``data.image_base64`` (list of base64 strings).\n    \"\"\"\n    images: list[str] = []\n    data = payload.get(\"data\")\n    data_object = _as_json_object(data)\n    if data_object is None:","sourceCodeStart":1049,"sourceCodeEnd":1085,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/providers/image_generation.py#L1049-L1085","documentation":"Error \"MiniMax image generation failed: {detail}\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/providers/image_generation.py:1067 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"}