FastAPI-Backend-Template icon indicating copy to clipboard operation
FastAPI-Backend-Template copied to clipboard

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

Open eshpilevskiy opened this issue 2 years ago • 0 comments

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'

eshpilevskiy avatar Nov 28 '23 11:11 eshpilevskiy