-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.bug-cop:triaged
Description
Custom Node Testing
- I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help)
Expected Behavior
Use OpenAIGPTImage1
node to edit image
Actual Behavior
API Error: Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'. (Type: invalid_request_error)
It seems that there is a problem after bf2a1b5
Steps to Reproduce
Debug Logs
# ComfyUI Error Report
## Error Details
- **Node ID:** 13
- **Node Type:** OpenAIGPTImage1
- **Exception Type:** Exception
- **Exception Message:** API Error: Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'. (Type: invalid_request_error)
## Stack Trace
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 421, in execute
raise ex
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 417, in execute
results.append(r.result())
File "D:\installed\Python\anaconda3\envs\py310_15\lib\asyncio\futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "D:\installed\Python\anaconda3\envs\py310_15\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 266, in async_wrapper
return await f(**args)
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\nodes_openai.py", line 540, in api_call
response = await operation.execute()
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 742, in execute
response_json = await client.request(
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 395, in request
return await self._handle_http_error(
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 616, in _handle_http_error
raise Exception(user_friendly) from exc
## System Information
- **ComfyUI Version:** 0.3.49
- **Arguments:** F:\sdwork\ComfyUI\ComfyUI\main.py --normalvram --cuda-malloc --extra-model-paths-config extra_model_paths_flash_store.yaml
- **OS:** nt
- **Python Version:** 3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.5.1+cu124
## Devices
- **Name:** cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 4294443008
- **VRAM Free:** 1580485029
- **Torch VRAM Total:** 1845493760
- **Torch VRAM Free:** 29221694
## Logs
2025-08-14T11:57:40.849008 - Adding extra search path checkpoints F:\sdwork\stable-diffusion-webui\models\Stable-diffusion
2025-08-14T11:57:40.849008 - Adding extra search path configs F:\sdwork\stable-diffusion-webui\models\Stable-diffusion
2025-08-14T11:57:40.849008 - Adding extra search path vae F:\sdwork\stable-diffusion-webui\models\VAE
2025-08-14T11:57:40.849008 - Adding extra search path loras F:\sdwork\stable-diffusion-webui\models\Lora
2025-08-14T11:57:40.849008 - Adding extra search path loras F:\sdwork\stable-diffusion-webui\models\LyCORIS
2025-08-14T11:57:40.849008 - Adding extra search path upscale_models F:\sdwork\stable-diffusion-webui\models\ESRGAN
2025-08-14T11:57:40.849008 - Adding extra search path upscale_models F:\sdwork\stable-diffusion-webui\models\RealESRGAN
2025-08-14T11:57:40.849008 - Adding extra search path upscale_models F:\sdwork\stable-diffusion-webui\models\SwinIR
2025-08-14T11:57:40.849008 - Adding extra search path embeddings F:\sdwork\stable-diffusion-webui\embeddings
2025-08-14T11:57:40.849008 - Adding extra search path hypernetworks F:\sdwork\stable-diffusion-webui\models\hypernetworks
2025-08-14T11:57:40.849008 - Adding extra search path controlnet F:\sdwork\stable-diffusion-webui\models\ControlNet
2025-08-14T11:57:40.850238 - Adding extra search path controlnet F:\sdwork\stable-diffusion-webui\extensions\sd-webui-controlnet\models
2025-08-14T11:57:40.860481 - Adding extra search path checkpoints G:\AI\ComfyUI\models\checkpoints
2025-08-14T11:57:40.860481 - Adding extra search path clip G:\AI\ComfyUI\models\clip
2025-08-14T11:57:40.860481 - Adding extra search path clip_vision G:\AI\ComfyUI\models\clip_vision
2025-08-14T11:57:40.860481 - Adding extra search path configs G:\AI\ComfyUI\models\configs
2025-08-14T11:57:40.861904 - Adding extra search path controlnet G:\AI\ComfyUI\models\controlnet
2025-08-14T11:57:40.861904 - Adding extra search path embeddings G:\AI\ComfyUI\models\embeddings
2025-08-14T11:57:40.861904 - Adding extra search path loras G:\AI\ComfyUI\models\loras
2025-08-14T11:57:40.861904 - Adding extra search path upscale_models G:\AI\ComfyUI\models\upscale_models
2025-08-14T11:57:40.861904 - Adding extra search path vae G:\AI\ComfyUI\models\vae
2025-08-14T11:57:40.861904 - Adding extra search path onnx G:\AI\ComfyUI\models\onnx
2025-08-14T11:57:40.861904 - Adding extra search path birefnet G:\AI\ComfyUI\models\BiRefNet
2025-08-14T11:57:40.862904 - Adding extra search path ben G:\AI\ComfyUI\models\rembg\ben
2025-08-14T11:57:40.862904 - Adding extra search path instantid G:\AI\ComfyUI\models\instantid
2025-08-14T11:57:40.862904 - Adding extra search path pulid G:\AI\ComfyUI\models\pulid
2025-08-14T11:57:40.862904 - Adding extra search path diffusers G:\AI\ComfyUI\models\diffusers
2025-08-14T11:57:43.201914 - Checkpoint files will always be loaded safely.
2025-08-14T11:57:43.317528 - Total VRAM 4096 MB, total RAM 32406 MB
2025-08-14T11:57:43.317528 - pytorch version: 2.5.1+cu124
2025-08-14T11:57:45.519163 - xformers version: 0.0.28.post3
2025-08-14T11:57:45.519163 - Set vram state to: NORMAL_VRAM
2025-08-14T11:57:45.519163 - Device: cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync
2025-08-14T11:57:45.590892 - Could not set sdpa backend priority.
2025-08-14T11:57:45.931613 - Using xformers attention
2025-08-14T11:57:49.151563 - Python version: 3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)]
2025-08-14T11:57:49.152571 - ComfyUI version: 0.3.50
2025-08-14T11:57:49.183783 - ________________________________________________________________________
WARNING WARNING WARNING WARNING WARNING
Installed frontend version 1.24.1 is lower than the recommended version 1.24.4.
Please install the updated requirements.txt file by running:
D:\installed\Python\anaconda3\envs\py310_15\python.exe -m pip install -r F:\sdwork\ComfyUI\ComfyUI\requirements.txt
If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
This error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.
________________________________________________________________________
2025-08-14T11:57:49.186977 - [Prompt Server] web root: D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\comfyui_frontend_package\static
2025-08-14T11:57:49.371699 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_url" in Model has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:50.672994 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingImageGenerationsRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:50.702991 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingVirtualTryOnRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:50.783237 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_params" in MoonvalleyPromptResponse has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:51.422623 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingDualCharacterEffectInput has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:51.431861 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingImage2VideoRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:51.489632 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingSingleImageEffectInput has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:51.494365 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_name" in KlingText2VideoRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.703234 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_version" in TripoTextToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.703234 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_seed" in TripoTextToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.716354 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_version" in TripoImageToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.716354 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_seed" in TripoImageToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.729465 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_version" in TripoMultiviewToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.729465 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_seed" in TripoMultiviewToModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.741571 - D:\installed\Python\anaconda3\envs\py310_15\lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_seed" in TripoTextureModelRequest has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
2025-08-14T11:57:52.833594 - Skipping loading of custom nodes
2025-08-14T11:57:52.837723 - ------------------------------------------------------------------------
Error importing dependencies: No module named 'alembic'
Please install the updated requirements.txt file by running:
D:\installed\Python\anaconda3\envs\py310_15\python.exe -m pip install -r F:\sdwork\ComfyUI\ComfyUI\requirements.txt
If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
This error is happening because ComfyUI now uses a local sqlite database.
------------------------------------------------------------------------
2025-08-14T11:57:52.861212 - comfyui-embedded-docs package not found
2025-08-14T11:57:52.863206 - ________________________________________________________________________
WARNING WARNING WARNING WARNING WARNING
Installed frontend version 1.24.1 is lower than the recommended version 1.24.4.
Please install the updated requirements.txt file by running:
D:\installed\Python\anaconda3\envs\py310_15\python.exe -m pip install -r F:\sdwork\ComfyUI\ComfyUI\requirements.txt
If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
This error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.
________________________________________________________________________
2025-08-14T11:57:52.863206 - ------------------------------------------------------------------------
Error importing dependencies: No module named 'alembic'
Please install the updated requirements.txt file by running:
D:\installed\Python\anaconda3\envs\py310_15\python.exe -m pip install -r F:\sdwork\ComfyUI\ComfyUI\requirements.txt
If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
This error is happening because ComfyUI now uses a local sqlite database.
------------------------------------------------------------------------
2025-08-14T11:57:52.864646 - Starting server
2025-08-14T11:57:52.865822 - To see the GUI go to: http://127.0.0.1:8188
2025-08-14T11:58:31.356249 - got prompt
2025-08-14T11:58:34.117507 - !!! Exception during processing !!! API Error: Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'. (Type: invalid_request_error)
2025-08-14T11:58:34.119686 - aiohttp.client_exceptions.ClientResponseError: 400, message={'error': {'message': "Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'.", 'type': 'invalid_request_error', 'param': 'image', 'code': 'unsupported_file_mimetype'}}, url='https://api.comfy.org/proxy/openai/images/edits'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 421, in execute
raise ex
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 417, in execute
results.append(r.result())
File "D:\installed\Python\anaconda3\envs\py310_15\lib\asyncio\futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "D:\installed\Python\anaconda3\envs\py310_15\lib\asyncio\tasks.py", line 232, in __step
result = coro.send(None)
File "F:\sdwork\ComfyUI\ComfyUI\execution.py", line 266, in async_wrapper
return await f(**args)
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\nodes_openai.py", line 540, in api_call
response = await operation.execute()
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 742, in execute
response_json = await client.request(
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 395, in request
return await self._handle_http_error(
File "F:\sdwork\ComfyUI\ComfyUI\comfy_api_nodes\apis\client.py", line 616, in _handle_http_error
raise Exception(user_friendly) from exc
Exception: API Error: Invalid file 'image': unsupported mimetype ('application/octet-stream'). Supported file formats are 'image/jpeg', 'image/png', and 'image/webp'. (Type: invalid_request_error)
2025-08-14T11:58:34.122046 - Prompt executed in 2.74 seconds
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"id":"d2195c4d-eab0-4822-bd08-003cad071978","revision":0,"last_node_id":16,"last_link_id":13,"nodes":[{"id":15,"type":"LoadImage","pos":[413.2498779296875,190.83102416992188],"size":[270,314],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"图像","name":"image","type":"COMBO","widget":{"name":"image"},"link":null},{"localized_name":"选择文件上传","name":"upload","type":"IMAGEUPLOAD","widget":{"name":"upload"},"link":null}],"outputs":[{"localized_name":"图像","name":"IMAGE","type":"IMAGE","links":[13]},{"localized_name":"遮罩","name":"MASK","type":"MASK","links":null}],"properties":{"cnr_id":"comfy-core","ver":"0.3.49","Node name for S&R":"LoadImage"},"widgets_values":["0_e7124e4a1f55d.png","image"]},{"id":13,"type":"OpenAIGPTImage1","pos":[728.3267211914062,190.6503143310547],"size":[400,252],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"参考图像","name":"image","shape":7,"type":"IMAGE","link":13},{"localized_name":"mask","name":"mask","shape":7,"type":"MASK","link":null},{"localized_name":"提示词","name":"prompt","type":"STRING","widget":{"name":"prompt"},"link":null},{"localized_name":"种子","name":"seed","shape":7,"type":"INT","widget":{"name":"seed"},"link":null},{"localized_name":"质量","name":"quality","shape":7,"type":"COMBO","widget":{"name":"quality"},"link":null},{"localized_name":"背景","name":"background","shape":7,"type":"COMBO","widget":{"name":"background"},"link":null},{"localized_name":"尺寸","name":"size","shape":7,"type":"COMBO","widget":{"name":"size"},"link":null},{"localized_name":"数量","name":"n","shape":7,"type":"INT","widget":{"name":"n"},"link":null}],"outputs":[{"localized_name":"图像","name":"IMAGE","type":"IMAGE","links":[12]}],"properties":{"Node name for S&R":"OpenAIGPTImage1"},"widgets_values":["把假发带在模特头上",1219630316,"randomize","low","opaque","1024x1024",1],"color":"#432","bgcolor":"#653"},{"id":14,"type":"PreviewImage","pos":[1198.3248291015625,185.31936645507812],"size":[274.9311828613281,258],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"图像","name":"images","type":"IMAGE","link":12}],"outputs":[],"properties":{"cnr_id":"comfy-core","ver":"0.3.29","Node name for S&R":"PreviewImage"},"widgets_values":[]}],"links":[[12,13,0,14,0,"IMAGE"],[13,15,0,13,0,"IMAGE"]],"groups":[],"config":{},"extra":{"workspace_info":{"id":"T9kxGJc6ge-YKgn7VVbzR","saveLock":false,"cloudID":null,"coverMediaPath":null},"frontendVersion":"1.17.11"},"version":0.4}
## Additional Context
(Please add any additional context or steps to reproduce the error here)
Other
No response
Metadata
Metadata
Assignees
Labels
Potential BugUser is reporting a bug. This should be tested.User is reporting a bug. This should be tested.bug-cop:triaged