ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Invalid workflow against zod schema:

Open licedy opened this issue 1 year ago • 21 comments

Your question

I've just started using ComfyUI. I've noticed that when I load a lot of workflows, this error message keeps popping up. It doesn't seem to affect the actual operation of the workflows, but it keeps appearing every time I switch pages. I've spent a whole day searching online for a solution, but I still can't figure it out. I'm going crazy! I urgently need help.

Image

For easier viewing: Invalid workflow against zod schema: Validation error: Invalid semantic version (x.y.z) at "nodes[8].properties.ver"; Invalid semantic version (x.y.z) at "nodes[14].properties.ver"; Invalid semantic version (x.y.z) at "nodes[15].properties.ver"; Invalid semantic version (x.y.z) at "nodes[17].properties.ver"; Invalid semantic version (x.y.z) at "nodes[18].properties.ver"; Invalid semantic version (x.y.z) at "nodes[20].properties.ver"; Invalid semantic version (x.y.z) at "nodes[22].properties.ver"; Invalid semantic version (x.y.z) at "nodes[25].properties.ver"; Invalid semantic version (x.y.z) at "nodes[26].properties.ver"

Logs


Other

No response

licedy avatar Mar 19 '25 08:03 licedy

Please upload the workflow file.

ltdrdata avatar Mar 19 '25 08:03 ltdrdata

I have the same issue

ahmed-meligy avatar Mar 19 '25 18:03 ahmed-meligy

To disable workflow validation you can toggle this setting off:

Image

Workflow validation checks whether all aspects of the workflow adhere to the expected format/schema. It's okay to disable temporarily.

In your case, the validation is flagging the node's ver property (node pack version). ver is expected to be a semantic version like 1.2.3-beta.1+metadata.

The validation for that field was added here https://github.com/Comfy-Org/ComfyUI_frontend/pull/2751. It uses this regex /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/. It also allows git commit hashes. If you can share the workflow or the ver field of the node properties you may help find a bug in the current system, thanks!

christian-byrne avatar Mar 19 '25 21:03 christian-byrne

If someone who experiences this issue could share the workflow (or just the node inside the workflow that causes the issue), that would help a ton 🙏 !

christian-byrne avatar Mar 20 '25 03:03 christian-byrne

That's fix my issue, anyway here is a simple workflow @christian-byrne

Text2Image Styles.json

ahmed-meligy avatar Mar 20 '25 10:03 ahmed-meligy

After disabling workflow validation, there are no more error messages. Thank you!

licedy avatar Mar 21 '25 06:03 licedy

Thank you for the workflow as it allowed me to identify the issue. The fix is pending and will be live soon.

christian-byrne avatar Mar 21 '25 06:03 christian-byrne

I am still hitting this:

Invalid workflow against zod schema:
Validation error: Invalid format. Must be 'github-user/repo-name' at "nodes[0].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[2].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[8].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[10].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[19].properties.aux_id"

I had some custom nodes (made using convert to group node) saved and they were showing up as nodes that I can add before updating but now they don't display anymore. I spent a lot of effort creating those custom nodes and I'd like to recover them.

levicki avatar Mar 24 '25 17:03 levicki

I am still getting these, here is a workflow Tagging with IF Image to Prompt.json

Image

karl-von-knecht avatar Apr 18 '25 02:04 karl-von-knecht

To disable workflow validation you can toggle this setting off:

Image

Workflow validation checks whether all aspects of the workflow adhere to the expected format/schema. It's okay to disable temporarily.

In your case, the validation is flagging the node's ver property (node pack version). ver is expected to be a semantic version like 1.2.3-beta.1+metadata.

The validation for that field was added here Comfy-Org/ComfyUI_frontend#2751. It uses this regex /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/. It also allows git commit hashes. If you can share the workflow or the ver field of the node properties you may help find a bug in the current system, thanks!

Thank u! After disabling workflow validation, there are no more error messages.

Hantiun avatar Apr 18 '25 03:04 Hantiun

This has been fixed on the current version of ComfyUI. So, you should not need to disable workflow validation anymore unless you're using an older version.

If you experience this issue and are coming here now, it might be something separate. Please share the workflow so we can fix it quickly.

christian-byrne avatar Apr 18 '25 04:04 christian-byrne

I downloaded a workflow off of civitai. I'm getting this error with it nonstop. I'm on ComfyUI Manager V3.31.10. I have attached the file.

Self-Sufficient Workflow (Anime) - Basic + Face + Hand Detailer.json

brummerke avatar Apr 19 '25 15:04 brummerke

  • Fixed issue found by @karl-von-knecht here: https://github.com/Comfy-Org/ComfyUI-Manager/pull/1758
  • Fixed issue found by @brummerke here: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3518

Thanks for sharing workflows and helping improve the ecosystem. It's important we ensure the node pack name/version is formatted correctly and handles all edge cases, so that installing custom nodes is a smooth process.

Anyone else arriving, please post workflows, it is very much appreciated!

christian-byrne avatar Apr 19 '25 21:04 christian-byrne

Hey there! I just freshly installed ComfyUI Portable, and I'm also getting this error from my workflow. Mine is similar to brummerke's error (I'm not sure if the formatting error is on my part, or on Comfy's part, or on the node's part), but nonetheless I'll paste my workflow here, in case it helps you:

workflow: https://puu.sh/KseJc/3b0ff974c5.png

Invalid workflow against zod schema:
Validation error: Invalid format. 
Must be 'github-user/repo-name' at "nodes[35].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[38].properties.aux_id"

Thank you for your hard work!!!

Norby123 avatar Apr 22 '25 12:04 Norby123

I still have the same error: win 11, Invalid workflow against zod schema: Validation error: Invalid format. Must be 'github-user/repo-name' at "nodes[0].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[5].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[6].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[7].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[10].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[11].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[14].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[16].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[22].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[23].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[35].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[39].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[41].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[44].properties.aux_id"; Invalid format. Must be 'github-user/repo-name' at "nodes[45].properties.aux_id"

workflow-mpswan-funv3-RqB562nEkWngLE8I9p6t-t8star-openart.ai.json Here are more details: [START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-05-04 18:47:41.108 ** Platform: Windows ** Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] ** Python executable: C:\Users\amin\Desktop\ComfyUI_windows_portable\python_embeded\python.exe ** ComfyUI Path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI ** ComfyUI Base Folder Path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI ** User directory: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user ** ComfyUI-Manager config path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini ** Log path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user\comfyui.log

Prestartup times for custom nodes: 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 2.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager

Checkpoint files will always be loaded safely. Total VRAM 32607 MB, total RAM 63092 MB pytorch version: 2.8.0.dev20250502+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync Using pytorch attention Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] ComfyUI version: 0.3.31 ComfyUI frontend version: 1.18.6 [Prompt Server] web root: C:\Users\amin\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static [Crystools INFO] Crystools version: 1.22.1 [Crystools INFO] CPU: AMD Ryzen 9 9950X3D 16-Core Processor - Arch: AMD64 - OS: Windows 11 [Crystools INFO] Pynvml (Nvidia) initialized. [Crystools INFO] GPU/s: [Crystools INFO] 0) NVIDIA GeForce RTX 5090 [Crystools INFO] NVIDIA Driver: 576.02 xFormers not available xFormers not available [ComfyUI-Easy-Use] server: v1.3.0 Loaded [ComfyUI-Easy-Use] web root: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use\web_version/v1 Loaded ComfyUI-GGUF: Allowing full torch compile (nightly)

Loading: ComfyUI-Impact-Pack (V8.14.2)

[Impact Pack] Wildcards loading done. Total VRAM 32607 MB, total RAM 63092 MB pytorch version: 2.8.0.dev20250502+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync

Loading: ComfyUI-Manager (V3.31.13)

[ComfyUI-Manager] network_mode: public

ComfyUI Revision: 150 [76899171] *DETACHED | Released on '2025-05-03'

Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json

[rgthree-comfy] Loaded 42 fantastic nodes. 🎉

Import times for custom nodes: 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-textoverlay 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\gguf 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-depthanythingv2 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoStartEndFrames 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-impact-pack 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-kjnodes 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-videohelpersuite 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Crystools 0.1 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager 0.2 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper 0.4 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use

Starting server

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json To see the GUI go to: http://127.0.0.1:8188 [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json FETCH ComfyRegistry Data: 5/83 FETCH ComfyRegistry Data: 10/83 FETCH ComfyRegistry Data: 15/83 FETCH ComfyRegistry Data: 20/83 [ComfyUI-Manager] Installation failed: Install path already exists: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper

[ComfyUI-Manager] Queued works are completed. {'install': 1}

After restarting ComfyUI, please refresh the browser. FETCH ComfyRegistry Data: 25/83

Restarting... [Legacy Mode]

Command: ['"C:\Users\amin\Desktop\ComfyUI_windows_portable\python_embeded\python.exe"', '"ComfyUI\main.py"']

C:\Users\amin\Desktop\ComfyUI_windows_portable>--use-sage-attention '--use-sage-attention' is not recognized as an internal or external command, operable program or batch file.

C:\Users\amin\Desktop\ComfyUI_windows_portable>pause Press any key to continue . . . [START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2025-05-04 18:48:07.840 ** Platform: Windows ** Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] ** Python executable: C:\Users\amin\Desktop\ComfyUI_windows_portable\python_embeded\python.exe ** ComfyUI Path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI ** ComfyUI Base Folder Path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI ** User directory: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user ** ComfyUI-Manager config path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini ** Log path: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\user\comfyui.log

Prestartup times for custom nodes: 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use 2.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager

Checkpoint files will always be loaded safely. Total VRAM 32607 MB, total RAM 63092 MB pytorch version: 2.8.0.dev20250502+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync Using pytorch attention Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] ComfyUI version: 0.3.31 ComfyUI frontend version: 1.18.6 [Prompt Server] web root: C:\Users\amin\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static [Crystools INFO] Crystools version: 1.22.1 [Crystools INFO] CPU: AMD Ryzen 9 9950X3D 16-Core Processor - Arch: AMD64 - OS: Windows 11 [Crystools INFO] Pynvml (Nvidia) initialized. [Crystools INFO] GPU/s: [Crystools INFO] 0) NVIDIA GeForce RTX 5090 [Crystools INFO] NVIDIA Driver: 576.02 xFormers not available xFormers not available [ComfyUI-Easy-Use] server: v1.3.0 Loaded [ComfyUI-Easy-Use] web root: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use\web_version/v1 Loaded ComfyUI-GGUF: Allowing full torch compile (nightly)

Loading: ComfyUI-Impact-Pack (V8.14.2)

[Impact Pack] Wildcards loading done. Total VRAM 32607 MB, total RAM 63092 MB pytorch version: 2.8.0.dev20250502+cu128 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5090 : cudaMallocAsync

Loading: ComfyUI-Manager (V3.31.13)

[ComfyUI-Manager] network_mode: public

ComfyUI Revision: 150 [76899171] *DETACHED | Released on '2025-05-03'

Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed Warning: Could not load sageattention: No module named 'sageattention' sageattention package is not installed [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json

[rgthree-comfy] Loaded 42 fantastic nodes. 🎉

Import times for custom nodes: 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-textoverlay 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\gguf 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-depthanythingv2 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoStartEndFrames 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-impact-pack 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-kjnodes 0.0 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-videohelpersuite 0.1 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper 0.4 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager 0.5 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-easy-use 0.5 seconds: C:\Users\amin\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Crystools

Starting server

To see the GUI go to: http://127.0.0.1:8188 [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH ComfyRegistry Data: 5/83 FETCH ComfyRegistry Data: 10/83 FETCH ComfyRegistry Data: 15/83 FETCH ComfyRegistry Data: 20/83 FETCH ComfyRegistry Data: 25/83 FETCH ComfyRegistry Data: 30/83 FETCH ComfyRegistry Data: 35/83 FETCH ComfyRegistry Data: 40/83 FETCH ComfyRegistry Data: 45/83 FETCH ComfyRegistry Data: 50/83 FETCH ComfyRegistry Data: 55/83 FETCH ComfyRegistry Data: 60/83 FETCH ComfyRegistry Data: 65/83 FETCH ComfyRegistry Data: 70/83 FETCH ComfyRegistry Data: 75/83 FETCH ComfyRegistry Data: 80/83 FETCH ComfyRegistry Data [DONE] [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE] [ComfyUI-Manager] All startup tasks have been completed.

euss3 avatar May 04 '25 15:05 euss3

l来信已收到..猓后回倍....

CGgangzi avatar May 04 '25 15:05 CGgangzi

I am also getting this error on many workflows. Thank you.

ReActor-Mask_RenderBlack_Bug.json

Reactor_Mask_Black-Render_02.json

Edit: added another workflow with this issue.

logan683 avatar May 05 '25 04:05 logan683

Also getting this error, also using the Reactor Masking Node as @logan683 above

alastaira avatar Jun 17 '25 10:06 alastaira

I'm still getting tons of these errors when developing my own nodes that have not been published (yet) to any registry or Github. This validation feature may be well-intended, but it's quite annoying to have it pop up over and over again during development.

andypotato avatar Aug 18 '25 23:08 andypotato

You can disable it, see my comments above.

christian-byrne avatar Aug 18 '25 23:08 christian-byrne