Describe the bug
It fails even if i add users manually
Jun 16 10:12:48 PM INFO: 173.252.127.1:0 - "POST / HTTP/1.1" 500 Internal Server Error
Jun 16 10:12:48 PM ERROR: Exception in ASGI application
Jun 16 10:12:48 PM Traceback (most recent call last):
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
Jun 16 10:12:48 PM result = await app( # type: ignore[func-returns-value]
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
Jun 16 10:12:48 PM return await self.app(scope, receive, send)
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/fastapi/applications.py", line 282, in call
Jun 16 10:12:48 PM await super().call(scope, receive, send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
Jun 16 10:12:48 PM await self.middleware_stack(scope, receive, send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in call
Jun 16 10:12:48 PM raise exc
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
Jun 16 10:12:48 PM await self.app(scope, receive, _send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call
Jun 16 10:12:48 PM raise exc
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
Jun 16 10:12:48 PM await self.app(scope, receive, sender)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
Jun 16 10:12:48 PM raise e
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
Jun 16 10:12:48 PM await self.app(scope, receive, send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
Jun 16 10:12:48 PM await route.handle(scope, receive, send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
Jun 16 10:12:48 PM await self.app(scope, receive, send)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
Jun 16 10:12:48 PM response = await func(request)
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app
Jun 16 10:12:48 PM raw_response = await run_endpoint_function(
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 167, in run_endpoint_function
Jun 16 10:12:48 PM return await dependant.call(**values)
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/ampalibe/core.py", line 87, in main
Jun 16 10:12:48 PM _req._verif_user(sender_id)
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/ampalibe/model.py", line 172, in trt_verif
Jun 16 10:12:48 PM return fonction(*arg, **kwarg)
Jun 16 10:12:48 PM ^^^^^^^^^^^^^^^^^^^^^^^
Jun 16 10:12:48 PM File "/opt/render/project/src/.venv/lib/python3.11/site-packages/ampalibe/model.py", line 199, in _verif_user
Jun 16 10:12:48 PM self.cursor.execute(sql, (user_id,))
Jun 16 10:12:48 PM psycopg2.errors.NotNullViolation: null value in column "user_id" of relation "amp_user" violates not-null constraint
Jun 16 10:12:48 PM DETAIL: Failing row contains (95, null, null, 2023-06-16 19:12:48.657722, null).
- OS: Linux
- Ampalibe Version 1.1.9