Skip to content

[Question]: 使用simpleserver部署时报错exception in asgi application #6866

@achial

Description

@achial

请提出你的问题

[2023-08-30 10:03:01,437] [ INFO] - The predictor id: 0 is selected by running the taskflow.
INFO: 127.0.0.1:54463 - "POST /taskflow/uie HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/applications.py", line 289, in call
await super().call(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/routing.py", line 291, in app
content = await serialize_response(
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/routing.py", line 159, in serialize_response
return field.serialize(
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/fastapi/_compat.py", line 141, in serialize
return self._type_adapter.dump_python(
File "/Users/lusiqi/anaconda3/envs/paddle_hub_env/lib/python3.8/site-packages/pydantic/type_adapter.py", line 268, in dump_python
return self.serializer.to_python(
pydantic_core._pydantic_core.PydanticSerializationError: Unable to serialize unknown type: 0.9551664531576698

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions