`flyctl proxy 5432 postgres` command fails

I was using flyctl proxy 5432 postgres command to connect my postgres instance. I don’t think I’ve changed anyting in my configurations but now I’m having the following error:
Error postgres: host was not found in DNS

Here are my fly.toml if that’s relevant ()

[experimental]
  allowed_public_ports = []
  auto_rollback = true
  private_network = true
  cmd = "start_with_migrations.sh"
  entrypoint = "sh"

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"