Can't connect to the database

I just discovered my app can’t connect to the database. When I try to create a proxy it says:

❯ flyctl proxy  15432:5432 -a stripe-custom-links-db
Error stripe-custom-links-db.internal: host was not found in DNS

How can I recover from this?

Restart didn’t help but upgrading resolved the issue.