lllyasviel / lllyasviel/FramePack
ERROR: Exception in ASGI application
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Starting fresh due to numerous issues and found a potential fix associated with updating the run.bat file.
Here is my graphics card info :
C:\Users\Computer>nvidia-smi
Sat Sep 6 07:48:34 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 576.88 Driver Version: 576.88 CUDA Version: 12.9 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 5070 WDDM | 00000000:01:00.0 On | N/A |
| 0% 44C P5 10W / 250W | 3916MiB / 12227MiB | 6% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
Extracted the Zip package.
Edited the run.bat so it now looks like this....
```
@echo off
call environment.bat
cd %~dp0webui
"%DIR%\python\python.exe" -m pip install --upgrade --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
"%DIR%\python\python.exe" demo_gradio.py --server 127.0.0.1 --inbrowser
:done
pause
```
After a long install process, the application opens, but dragging/dropping an image OR clicking the "Open File" to open directly results in the following error.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in __call__
return await self.app(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\fastapi\applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
raise exc
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
await self.app(scope, receive, _send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\gradio\route_utils.py", line 822, in __call__
await self.app(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\routing.py", line 714, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\routing.py", line 74, in app
await response(scope, receive, send)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\responses.py", line 359, in __call__
await self._handle_simple(send, send_header_only)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\responses.py", line 388, in _handle_simple
await send({"type": "http.response.body", "body": chunk, "more_body": more_body})
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 39, in sender
await send(message)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\_exception_handler.py", line 39, in sender
await send(message)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\starlette\middleware\errors.py", line 162, in _send
await send(message)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 508, in send
output = self.conn.send(event=h11.EndOfMessage())
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\h11\_connection.py", line 468, in send
data_list = self.send_with_data_passthrough(event)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\h11\_connection.py", line 501, in send_with_data_passthrough
writer(event, data_list.append)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\h11\_writers.py", line 60, in __call__
self.send_eom(event.headers, write)
File "C:\FramePack\framepack_cu126_torch26\framepack_cu126_torch26\system\python\lib\site-packages\h11\_writers.py", line 83, in send_eom
raise LocalProtocolError("Too little data for declared Content-Length")
h11._util.LocalProtocolError: Too little data for declared Content-Length
Contributor guide
No contributing guide indexed for this repository
Research direction
The report names run.bat and demo_gradio.py and includes an ASGI traceback ending in h11.LocalProtocolError. Start by reproducing the error through both image upload paths, then trace the application-side response before the uvicorn, Starlette, and h11 layers. Done would mean identifying the cause and confirming that opening or dropping an image completes without this exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python, pytorch
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100