sqlalchemy.exc.ArgumentError: Can't combine fixed host and multihost URL formats

498 views Asked by At

When Connecting Postgresql db using sqlalchemy and cloud-sql-proxy but getting this error and connection string we used is below given with create_engine.

"postgresql+psycopg2://{db_user}:{db_password}@{db_port}/{db_name}?host=cloud-sql-proxy"

Any modifications required in the connection string or any other way of connection method to get valid url.

0

There are 0 answers