space-nuko / ComfyBox

Customizable Stable Diffusion frontend for ComfyUI
GNU General Public License v3.0
586 stars 45 forks source link

Error loading app #124

Open bmaltais opened 1 year ago

bmaltais commented 1 year ago

When I try to start Comfybox I get this strange error.

ComfyUI is running on Windows. I can use if just fine at http://127.0.0.1:8188/

When I start Comfybox I get:

image

and this error show up in the ComfyUI console:

Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "asyncio\events.py", line 80, in _run
  File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

Any idea what I am doing wrong?

P.S.: I had to do a slght update to the package.json to make things prebuild properly on Windows:

{
  "name": "ComfyBox",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "vite dev",
    "build": "vite build",
    "preview": "turbo run preview",
    "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
    "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:inspect": "vitest --inspect-brk --single-thread",
    "lint": "prettier --plugin-search-dir . --check . && eslint .",
    "format": "prettier --plugin-search-dir . --write .",
    "svelte-check": "svelte-check",
    "prebuild": "pnpm run build:css",
    "build:css": "pollen -c gradio/js/theme/src/pollen.config.cjs && shx mv src/pollen.css node_modules/@gradio/theme/src"
  },
  "devDependencies": {
    "@floating-ui/core": "^1.2.6",
    "@floating-ui/dom": "^1.2.8",
    "@zerodevx/svelte-toast": "^0.9.3",
    "eslint": "^8.37.0",
    "eslint-config-prettier": "^8.8.0",
    "eslint-plugin-svelte3": "^4.0.0",
    "happy-dom": "^9.18.3",
    "jsdom": "^22.0.0",
    "prettier": "^2.8.7",
    "prettier-plugin-svelte": "^2.10.0",
    "rollup-plugin-visualizer": "^5.9.0",
    "sass": "^1.61.0",
    "svelte": "^3.59.0",
    "svelte-check": "^3.2.0",
    "svelte-dnd-action": "^0.9.22",
    "typescript": "^5.0.3",
    "vite": "^4.3.8",
    "vite-plugin-glsl": "^1.1.2",
    "vite-plugin-static-copy": "^0.14.0",
    "vite-plugin-svelte-console-remover": "^1.0.10",
    "vite-tsconfig-paths": "^4.0.8",
    "vitest": "^0.27.3",
    "shx": "^0.3.3"
  },
  "type": "module",
  "dependencies": {
    "@codemirror/autocomplete": "^6.3.0",
    "@codemirror/commands": "^6.1.2",
    "@codemirror/language": "^6.6.0",
    "@codemirror/lint": "^6.0.0",
    "@codemirror/search": "^6.2.2",
    "@codemirror/state": "^6.1.2",
    "@codemirror/view": "^6.4.1",
    "@dogagenc/svelte-markdown": "^0.2.4",
    "@gradio/accordion": "workspace:*",
    "@gradio/atoms": "workspace:*",
    "@gradio/button": "workspace:*",
    "@gradio/client": "workspace:*",
    "@gradio/file": "workspace:*",
    "@gradio/form": "workspace:*",
    "@gradio/gallery": "workspace:*",
    "@gradio/icons": "workspace:*",
    "@gradio/image": "workspace:*",
    "@gradio/json": "workspace:*",
    "@gradio/tabs": "workspace:*",
    "@gradio/theme": "workspace:*",
    "@gradio/upload": "workspace:*",
    "@gradio/utils": "workspace:*",
    "@litegraph-ts/core": "workspace:*",
    "@litegraph-ts/nodes-basic": "workspace:*",
    "@litegraph-ts/nodes-events": "workspace:*",
    "@litegraph-ts/nodes-logic": "workspace:*",
    "@litegraph-ts/nodes-math": "workspace:*",
    "@litegraph-ts/nodes-strings": "workspace:*",
    "@litegraph-ts/tsconfig": "workspace:*",
    "@sveltejs/vite-plugin-svelte": "^2.1.1",
    "@tsconfig/svelte": "^4.0.1",
    "@types/dompurify": "^3.0.2",
    "canvas-to-svg": "^1.0.3",
    "cm6-theme-basic-dark": "^0.2.0",
    "cm6-theme-basic-light": "^0.2.0",
    "codemirror": "^6.0.1",
    "csv": "^6.3.0",
    "csv-parse": "^5.3.10",
    "dompurify": "^3.0.3",
    "events": "^3.3.0",
    "framework7": "^8.0.3",
    "framework7-svelte": "^8.0.3",
    "img-comparison-slider": "^8.0.0",
    "marked": "^5.0.3",
    "pollen-css": "^4.6.2",
    "radix-icons-svelte": "^1.2.1",
    "style-mod": "^4.0.3",
    "svelte-bootstrap-icons": "^2.3.1",
    "svelte-feather-icons": "^4.0.0",
    "svelte-floating-ui": "^1.5.2",
    "svelte-preprocess": "^5.0.3",
    "svelte-select": "^5.5.3",
    "svelte-splitpanes": "^0.7.13",
    "svelte-tiny-virtual-list": "^2.0.5",
    "tailwindcss": "^3.3.1",
    "typed-emitter": "github:andywer/typed-emitter",
    "uuid": "^9.0.0",
    "vite-plugin-full-reload": "^1.0.5",
    "zod": "^3.21.4"
  }
}

The mv command is linux specific... so installing shx provide a shell wrapper to make mv work on windows.

Soliver84 commented 5 months ago

Start ComfyUI with python main.py --enable-cors-header

this its important: --enable-cors-header

Soliver84 commented 5 months ago

HTTPS SSL Error: Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)> Traceback (most recent call last): File "asyncio\events.py", line 80, in _run File "asyncio\proactor_events.py", line 165, in _call_connection_lost ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

this Packege: comfyui-mixlab-nodes