You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Streaming live webcam feature works perfectly in Local Host but unable to work the same in live url.
I am not using Google Colab. And have also enabled allowed paths based on other similar issues.
I have created a new virtual environment to ensure there are no clashed dependencies.
Also, I have followed the minimal template that was supposed to be working but it did not.
this error keeps popping up when I webcam is starting to stream.
Logs
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 411, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 69, in __call__
return await self.app(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\fastapi\applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\middleware\errors.py", line 186, in __call__
raise exc
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\middleware\errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\gradio\route_utils.py", line 713, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\gradio\route_utils.py", line 729, in simple_response
await self.app(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\middleware\exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\routing.py", line 776, in app
await route.handle(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\routing.py", line 297, in handle
await self.app(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\_exception_handler.py", line 64, in wrapped_app
raise exc
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\routing.py", line 72, in app
response = await func(request)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\fastapi\routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\gradio\routes.py", line 1085, in upload_file
form = await multipart_parser.parse()
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\gradio\route_utils.py", line 597, in parse
async forchunkin self.stream:
File "C:\Users\radel\anaconda3\envs\gradio\lib\site-packages\starlette\requests.py", line 238, in stream
raise ClientDisconnect()
starlette.requests.ClientDisconnect
System Info
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 4.29.0
gradio_client version: 0.16.1
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.111.0
ffmpy: 0.3.2
gradio-client==0.16.1 is not installed.
httpx: 0.27.0
huggingface-hub: 0.23.0
importlib-resources: 6.4.0
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.8.4
numpy: 1.26.4
orjson: 3.10.3
packaging: 24.0
pandas: 2.2.2
pillow: 10.3.0
pydantic: 2.7.1
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.4.3
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.11.0
urllib3: 2.2.1
uvicorn: 0.29.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2024.3.1
httpx: 0.27.0
huggingface-hub: 0.23.0
packaging: 24.0
typing-extensions: 4.11.0
websockets: 11.0.3
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
radellng
changed the title
ERROR: Exception in ASGI application when input image streaming = True,
ERROR: Exception in ASGI application when input image streaming = True
May 9, 2024
Describe the bug
Streaming live webcam feature works perfectly in Local Host but unable to work the same in live url.
I am not using Google Colab. And have also enabled allowed paths based on other similar issues.
I have created a new virtual environment to ensure there are no clashed dependencies.
Also, I have followed the minimal template that was supposed to be working but it did not.
Have you searched existing issues? 🔎
Reproduction
Screenshot
this error keeps popping up when I webcam is starting to stream.
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: