Skip to content

Comfy crash on missing UserId #7438

@lerignoux

Description

@lerignoux

Expected Behavior

When comfy receive a request with a missing Comfy.UserId (from app local data), it crashes on a 500 error.

This can happen for instance when using --multi-user if the front end contains an old user that was removed on service side.

Actual Behavior

server returns a 500 error
Front end loads indefinitely until local storage is cleaned

Steps to Reproduce

  • start comfy in multi-user (--multi-user)
  • open the front end in your browser
  • empty your comfyUI user folder (ex comfy in docker and container is re-created)
  • reload comfyUI page in front end
  • comfy return a 500 and ComfyUI_frontend loads indefinitely

Debug Logs

raise KeyNotFound -> 500 error

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions