Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection search via API broken #37

Open
JBorrow opened this issue Jan 9, 2025 · 0 comments
Open

Collection search via API broken #37

JBorrow opened this issue Jan 9, 2025 · 0 comments

Comments

@JBorrow
Copy link
Member

JBorrow commented Jan 9, 2025

2025-01-09T14:09:45.230797908Z ERROR:    Exception in ASGI application
2025-01-09T14:09:45.230808858Z Traceback (most recent call last):
2025-01-09T14:09:45.230816849Z   File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
2025-01-09T14:09:45.230820009Z     result = await app(  # type: ignore[func-returns-value]
2025-01-09T14:09:45.230822759Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.230825529Z   File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
2025-01-09T14:09:45.230828599Z     return await self.app(scope, receive, send)
2025-01-09T14:09:45.230831319Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.230833989Z   File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
2025-01-09T14:09:45.230837529Z     await super().__call__(scope, receive, send)
2025-01-09T14:09:45.230843009Z   File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 113, in __call__
2025-01-09T14:09:45.230848749Z     await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 187, in __call__
2025-01-09T14:09:45.230860460Z     raise exc
2025-01-09T14:09:45.230865750Z   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 165, in __call__
2025-01-09T14:09:45.230871140Z     await self.app(scope, receive, _send)
2025-01-09T14:09:45.230876370Z   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
2025-01-09T14:09:45.230886681Z   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2025-01-09T14:09:45.230912831Z   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-01-09T14:09:45.230917502Z     raise exc
2025-01-09T14:09:45.230921782Z   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2025-01-09T14:09:45.230926262Z     await app(scope, receive, sender)
2025-01-09T14:09:45.230930642Z   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 715, in __call__
2025-01-09T14:09:45.230935182Z     await self.middleware_stack(scope, receive, send)
2025-01-09T14:09:45.230939612Z   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 735, in app
2025-01-09T14:09:45.230944062Z     await route.handle(scope, receive, send)
2025-01-09T14:09:45.230948732Z   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 288, in handle
2025-01-09T14:09:45.230953743Z     await self.app(scope, receive, send)
2025-01-09T14:09:45.230958193Z   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2025-01-09T14:09:45.230967233Z   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2025-01-09T14:09:45.230971843Z     raise exc
  File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
2025-01-09T14:09:45.230985064Z   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 73, in app
2025-01-09T14:09:45.230989613Z     response = await f(request)
2025-01-09T14:09:45.230993974Z                ^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.230998284Z   File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 301, in app
2025-01-09T14:09:45.231002714Z     raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.231011364Z   File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
2025-01-09T14:09:45.231020454Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.231024834Z   File "/usr/local/lib/python3.12/site-packages/hipposerve/api/relationships.py", line 124, in search_collection
2025-01-09T14:09:45.231029375Z     ReadCollectionResponse(
  File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 214, in __init__
2025-01-09T14:09:45.231042415Z     validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
2025-01-09T14:09:45.231047095Z                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-09T14:09:45.231051605Z pydantic_core._pydantic_core.ValidationError: 2 validation errors for ReadCollectionResponse
2025-01-09T14:09:45.231055966Z child_collections
2025-01-09T14:09:45.231060335Z   Field required [type=missing, input_value={'id': ObjectId('677efa30...0.\n', 'products': None}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.10/v/missing
2025-01-09T14:09:45.231069596Z parent_collections
2025-01-09T14:09:45.231073776Z   Field required [type=missing, input_value={'id': ObjectId('677efa30...0.\n', 'products': None}, input_type=dict]
2025-01-09T14:09:45.231078466Z     For further information visit https://errors.pydantic.dev/2.10/v/missing```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant