I have created a postgres db in fly, and deployed my app. When I try to attach one to the other I get an error:
❯ fly pg attach --postgres-app flagsmith-postgres
DEBUG Loaded flyctl config from/Users/ben/.fly/config.yml
DEBUG Loading app config from/Users/ben/projects/flagsmith/api/fly.toml
DEBUG Working Directory: /Users/ben/projects/flagsmith/api
DEBUG App Config File: /Users/ben/projects/flagsmith/api/fly.toml
DEBUG --> POST https://api.fly.io/graphql {{"query":"mutation($input: AttachPostgresClusterInput!) { attachPostgresCluster(input: $input) { app { name } postgresClusterApp { name } environmentVariableName connectionString environmentVariableName } }","variables":{"input":{"appId":"flagsmith","postgresClusterAppId":"flagsmith-postgres"}}}
}
Attaching...⣯ DEBUG <-- 500 https://api.fly.io/graphql (5.63s) {"errors":[{"message":"An unknown error occured.","extensions":{"code":"SERVER_ERROR"}}],"data":{}}
Error An unknown error occured.