ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Load JSON (API format)

Open ecornbower opened this issue 3 years ago • 2 comments

The save / load JSON (API format) is currently broken in the latest release.

Steps to reproduce:

  1. Load the default workflow.
  2. Save as JSON (API) format
  3. Clear the workflow, then load the JSON that was just saved.

Actual result:

Nothing will happen, but an error will be logged:

TypeError
graphData.nodes is not iterable
TypeError: graphData.nodes is not iterable
    at ComfyApp.loadGraphData (http://desktop-01:8080/scripts/app.js:1439:27)
    at reader.onload (http://desktop-01:8080/scripts/app.js:1759:10)

Expected result:

Workflow is reloaded.

Edit: Not sure if this is the intended functionality, but would really be nice to be able to re-import exported JSON API files to make changes and re-save back out again.

ecornbower avatar Oct 15 '23 01:10 ecornbower

Duplicate of #1498?

Chaoses-Ib avatar Dec 28 '23 18:12 Chaoses-Ib

@Chaoses-Ib Yes, and it appears to be (mostly) working now so I'll close this out.

ecornbower avatar Dec 28 '23 23:12 ecornbower