Image Generation fails with Request Aborted error #7492
-
What happened?Hi everyone, I have set up a custom helm deployment for a PoC and I wanted to enable Image Generation via Azure OpenAI (gpt-image-1). These are steps I have followed:
When I test the deployment locally on a k3s cluster (Rancher Desktop) it works and the image is generated without any issues. In our cloud infrastructure though after deploying these changes and testing the Image Tool with an Agent I receive this error in the UI"(Result Something went wrong when trying to generate the image. The OpenAI API may be unavailable: Error Message: Request was aborted." and these are the logs of the pod: {"level":"error","message":"[image_gen_oai] Problem generating the image: An error occurred while setting up the request: Request was aborted.","stack":"Error: Request was aborted.\n at OpenAI.makeRequest (/app/node_modules/openai/core.js:324:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async tool.name (/app/api/app/clients/tools/structured/OpenAIImageTool...","timestamp":"2025-05-21T12:08:52.596Z"}
{"level":"error","message":"[api/server/controllers/agents/client.js #sendCompletion] Operation aborted Aborted","stack":"Error: Aborted\n at EventTarget.listener (/app/node_modules/@langchain/core/dist/utils/signal.cjs:20:24)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n ...","timestamp":"2025-05-21T12:08:52.598Z"} Also when I try to upload an image and tell the Agent to recreate it/edit it then I receive this:
I have also tried using a debug pod from within the same application namespace and tried this command: curl -X POST "<endpoint>/gpt-image-1/images/generations?api-version=2025-04-01-preview" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"prompt" : "A photograph of a red fox in an autumn forest",
"size" : "1024x1024",
"quality" : "medium",
"output_compression" : 100,
"output_format" : "png",
"n" : 1
}' And this seems to work fine from within the terminal Is there anything that I am missing config wise? Or is there a known issue I might be able to refer? Appreciate all the answers and help in advance Version Informationlibrechat:v0.7.8 Steps to Reproduce
What browsers are you seeing the problem on?Chrome Relevant log outputGenerate Image
{"level":"error","message":"[image_gen_oai] Problem generating the image: An error occurred while setting up the request: Request was aborted.","stack":"Error: Request was aborted.\n at OpenAI.makeRequest (/app/node_modules/openai/core.js:324:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async tool.name (/app/api/app/clients/tools/structured/OpenAIImageTool...","timestamp":"2025-05-21T12:08:52.596Z"}
{"level":"error","message":"[api/server/controllers/agents/client.js #sendCompletion] Operation aborted Aborted","stack":"Error: Aborted\n at EventTarget.listener (/app/node_modules/@langchain/core/dist/utils/signal.cjs:20:24)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n ...","timestamp":"2025-05-21T12:08:52.598Z"}
Edit Image
{"level":"error","message":"[image_edit_oai] Problem editing the image: No response received for POST /images/edits: canceled","requestInfo":{"method":"post","url":"/images/edits"},"stack":"CanceledError: canceled\n at EventTarget.abort (/app/node_modules/axios/dist/node/axios.cjs:2769:54)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n at...","timestamp":"2025-05-21T12:18:34.009Z"}
{"level":"error","message":"[api/server/controllers/agents/client.js #sendCompletion] Operation aborted Aborted","stack":"Error: Aborted\n at EventTarget.listener (/app/node_modules/@langchain/core/dist/utils/signal.cjs:20:24)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n ...","timestamp":"2025-05-21T12:18:34.010Z"} ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I am also getting similar type of issue like @svfwan said in the above issue.
|
Beta Was this translation helpful? Give feedback.
Hi @neymarsabin,
I solved the issue by increasing the HTTP timeout configuration for the route on our cluster (OpenShift). It wasn't related to the application code or OpenAI library. If you want I can provide the specific configuration that fixed the issue for me! :)