Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postprocess_worker in comfyui_api_wrapper: 'str' object has no attribute 'get' #108

Open
Nero5023 opened this issue Oct 2, 2024 · 1 comment

Comments

@Nero5023
Copy link

Nero5023 commented Oct 2, 2024

When the workflow generate the text output (save text to file). It will show this error. The error comes from this line.

When the output is text not image, the item here will be string, so it will raise the expection. I think we should just continue for such cases.


example comfyui output that will case the issue:

"outputs": {
        "79": {
            "images": [
                {
                    "filename": "ComfyUI_00053_.png",
                    "subfolder": "",
                    "type": "output"
                }
            ]
        },
        "21": {
            "text": [
                "foo bar baz"
            ]
        },
        "22": {
            "text": [
                "another text"
            ]
        }
    },
@Nero5023
Copy link
Author

Nero5023 commented Oct 2, 2024

Similar issue #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant