I think the fly.io team needs to look into their connection string. It’s way too complicated to get working locally and on production. We need to be able to get a URL string that just works. I spent my all day figuring this out and I ended up giving up and opted for another provider. Please look into this
What were you trying to connect with?