INFO: 172.29.0.2:58776 - "GET /messages/06bf7ab7-84f0-4af0-bbe2-b1af949c4171 HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/workspace/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/workspace/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/middleware/cors.py", line 83, in call
await self.app(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/workspace/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/routing.py", line 758, in call
await self.middleware_stack(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/routing.py", line 778, in app
await route.handle(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/routing.py", line 299, in handle
await self.app(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/routing.py", line 79, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/workspace/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/workspace/.venv/lib/python3.11/site-packages/starlette/routing.py", line 74, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 315, in app
content = await serialize_response(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 155, in serialize_response
raise ResponseValidationError(
fastapi.exceptions.ResponseValidationError: 13 validation errors:
{'type': 'missing', 'loc': ('response', 'text'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'id'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'created_at'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'updated_at'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'generation_id'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'position'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'is_active'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'documents'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'citations'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'files'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'annotations'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'is_annotation_response'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}
{'type': 'missing', 'loc': ('response', 'agent'), 'msg': 'Field required', 'input': [<backend.models.annotation.Annotation object at 0x773d2b6dfe10>], 'url': 'https://errors.pydantic.dev/2.7/v/missing'}