Tuesday, January 23, 2018

[google-cloud-sql-discuss] Re: Can not connect to Postgres instance

Hi Nhat,

I'm having exactly the same issue. The response below was not helpful (neither the example nor the connecting link) but I suspect there is an issue with how we are writing the connection string. Were you ever able to solve your problem, and if so, how?

On Monday, August 28, 2017 at 7:36:10 AM UTC-7, Nhat Khanh Le Dinh wrote:
My Postgres instance and deploy nodejs app are on the same project, I tried this connection string: pg://postgres:[Password]@/[DB]?host=/[Instance_name] but Knex always return this error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call? How to fix this, thank you.
I tried this on my local machine (Allow my IP) and it works fine.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/fa68c2fb-48fa-4f47-b28a-197fff3c3a7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment