Connection to Neon database fails in deployments

Thanks for trying the max duration configuration. We’ve ruled out a credential problem since the Postgres connection is managing that for you and some writes are successful. It sounds like a timing issue or unhandled error in this case.

I recommend using try/catch statements to handle errors and collect more info about what’s going wrong. Runtime logs can also be helpful with this.