Aeternalis-Ingenium / FastAPI-Backend-Template

A backend project template with FastAPI, PostgreSQL with asynchronous SQLAlchemy 2.0, Alembic for asynchronous database migration, and Docker.
GNU General Public License v3.0
648 stars 98 forks source link

TypeError: MultiHostUrl.__new__() got an unexpected keyword argument 'scheme' #30

Open eshpilevskiy opened 11 months ago

eshpilevskiy commented 11 months ago

backend_app | File "/usr/backend/src/api/dependencies/session.py", line 11, in backend_app | from src.repository.database import async_db backend_app | File "/usr/backend/src/repository/database.py", line 43, in backend_app | async_db: AsyncDatabase = AsyncDatabase() backend_app | ^^^^^^^^^^^^^^^ backend_app | File "/usr/backend/src/repository/database.py", line 15, in init backend_app | self.postgres_uri: pydantic.PostgresDsn = pydantic.PostgresDsn( backend_app | ^^^^^^^^^^^^^^^^^^^^^ backend_app | File "/usr/local/lib/python3.12/typing.py", line 1133, in call backend_app | result = self.origin(*args, **kwargs) backend_app | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ backend_app | TypeError: MultiHostUrl.new() got an unexpected keyword argument 'scheme'

LeNguyenGiaBao commented 2 days ago

I met it