{"record":{"id":"17da30eef53f9b8a","repo":"HKUDS/nanobot","slug":"zhipu-image-generation-timed-out","errorCode":null,"errorMessage":"Zhipu image generation timed out","messagePattern":"Zhipu image generation timed out","errorType":"exception","errorClass":"ImageGenerationError","httpStatus":null,"severity":"error","filePath":"nanobot/providers/image_generation.py","lineNumber":1875,"sourceCode":"                body=body,\n                url=url,\n            )\n        finally:\n            if self._client is None:\n                await client.aclose()\n\n    async def _generate_with_client(\n        self,\n        client: httpx.AsyncClient,\n        *,\n        headers: dict[str, str],\n        body: dict[str, Any],\n        url: str,\n    ) -> GeneratedImageResponse:\n        try:\n            response = await self._http_post(url, headers=headers, body=body, client=client)\n        except httpx.TimeoutException as exc:\n            raise ImageGenerationError(\"Zhipu image generation timed out\") from exc\n        except httpx.RequestError as exc:\n            raise ImageGenerationError(f\"Zhipu 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\"Zhipu image generation failed: {detail}\") from exc\n\n        payload = response.json()\n        images = await _zhipu_images_from_payload(payload, proxy=self.proxy)\n\n        self._require_images(images, payload)\n\n        return GeneratedImageResponse(images=images, content=\"\", raw=payload)\n\n\ndef _zhipu_size(","sourceCodeStart":1857,"sourceCodeEnd":1893,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/providers/image_generation.py#L1857-L1893","documentation":"Error \"Zhipu image generation timed out\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/providers/image_generation.py:1875 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"}