raise NotImplementedError in BaseDBBackend #377
Closed
nickshanks347
started this conversation in
General
Replies: 2 comments
-
Either way, regardless of the docs issue, this just doesn't seem to work: ERROR:uvicorn.error:Exception in ASGI application
Traceback (most recent call last):
File "/opt/python/latest/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/opt/python/latest/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/fastapi/applications.py", line 269, in __call__
await super().__call__(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/opt/python/latest/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/exceptions.py", line 93, in __call__
raise exc
File "/opt/python/latest/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__
await self.app(scope, receive, sender)
File "/opt/python/latest/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/opt/python/latest/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/routing.py", line 670, in __call__
await route.handle(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/routing.py", line 266, in handle
await self.app(scope, receive, send)
File "/opt/python/latest/lib/python3.10/site-packages/starlette/routing.py", line 65, in app
response = await func(request)
File "/opt/python/latest/lib/python3.10/site-packages/fastapi/routing.py", line 227, in app
raw_response = await run_endpoint_function(
File "/opt/python/latest/lib/python3.10/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
return await dependant.call(**values)
File "/workspaces/authx/authx/routers/auth.py", line 76, in register
tokens = await service.register(data)
File "/workspaces/authx/authx/services/auth.py", line 124, in register
if await self._email_exists(user.email):
File "/workspaces/authx/authx/services/auth.py", line 80, in _email_exists
return await self._repo.get_by_email(email) is not None
File "/workspaces/authx/authx/backend/api/crud.py", line 17, in get_by_email
return await self._database.get_by_email(email)
AttributeError: 'str' object has no attribute 'get_by_email' |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @nickshanks347, as you know many of authx cases here are still in development progress like its still need much works for example the supporting of database still under development, (MongoDB is ready production support) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Example Code
Description
I cloned the repository, and I'm trying out AuthX as it looks to be what I want. I've run into the following issues:
BaseDBBackend
class, there are a bunch ofraise NotImplementedError
, does this mean the BaseDBBackend isn't finished yet?/docs
, I can see a bunch of endpoints, but theregister
endpoint, for example, doesn't let me put it any parameters.When will the sqlite DB backend be finished?
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.77.1
Python Version
3.10.4
Additional Context
Beta Was this translation helpful? Give feedback.
All reactions