报错详情
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/middleware/cors.py", line 148, in simple_response
await self.app(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/routing.py", line 754, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/routing.py", line 774, in app
await route.handle(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/routing.py", line 295, in handle
await self.app(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/starlette/routing.py", line 74, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/gradio/routes.py", line 668, in queue_data
blocks._queue.attach_data(body)
File "/home/xxxxxxx/.conda/envs/seamless/lib/python3.11/site-packages/gradio/queueing.py", line 161, in attach_data
raise ValueError("Event not found", event_id)
ValueError: ('Event not found', 'xxxxxxxxxxxxxxxxxxxxxxxxxx')
解决办法
Nginx 设置 proxy_buffering off;