I'm trying to deploy a fastapi/tortoise application to fly.io using one of their provided postgres databases. When you add the database to your application, it creates a default DATABASE_URL environment variable with the full connection string including the parameter ?sslmode=disable
When trying to run aerich upgrade during startup to migrate the database I'm getting the following error
File "/usr/local/lib/python3.11/site-packages/asyncpg/pool.py", line 507, in _get_new_connection
con = await connection.connect(
^^^^^^^^^^^^^^^^^^^
TypeError: connect() got an unexpected keyword argument 'sslmode'
I was able to recreate this error locally using docker-compose and the following connection url
I'm trying to deploy a fastapi/tortoise application to fly.io using one of their provided postgres databases. When you add the database to your application, it creates a default DATABASE_URL environment variable with the full connection string including the parameter ?sslmode=disable
When trying to run aerich upgrade during startup to migrate the database I'm getting the following error
I was able to recreate this error locally using docker-compose and the following connection url
My dependencies
Has anyone successfully passed the sslmode parameter while using tortoise/aerich?