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
I have a db with the schema mentioned, suddenly on one of the tables, I can't seem to insert a value like below, I made sure to run prisma generate + prisma db push.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
await self.app(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
await self.middleware_stack(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/backend/routes/api/users/[user_id]/personas/[persona_id]/appearances/[appearance_id]/outfits/[outfit_id]/generate/route.py", line 254, in generate_image
await db.personaemotion.create(
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/actions.py", line 16630, in create
resp = await self._client._execute(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/_base_client.py", line 533, in _execute
return await self._engine.query(builder.build(), tx_id=self._tx_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/engine/_query.py", line 404, in query
return await self.request(
^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/engine/_http.py", line 233, in request
return self._process_response_data(data=data, response=response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/engine/_http.py", line 87, in _process_response_data
return utils.handle_response_errors(response, errors_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bewinxed/Development/eve-backend/.venv/lib/python3.12/site-packages/prisma/engine/utils.py", line 175, in handle_response_errors
raise exc(error)
prisma.errors.FieldNotFoundError: Could not find field at `createOnePersonaEmotion.data.appearance_id`
Bug description
I have a db with the schema mentioned, suddenly on one of the tables, I can't seem to insert a value like below, I made sure to run prisma generate + prisma db push.
The field is indeed in my database table
How to reproduce
ERROR
Expected behavior
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: