I must be doing something wrong and I appreciate any help I can get with this.
This is what is happening:
I created a simple hello world cloud run api, and that worked just fine.
I then tried to connect to the postgres cloud sql database I created and wanted to return a SELECT NOW().
This is what code assist says about the error:
server.ts code in the immersive is configured to use the corresponding socketPath: '/cloudsql/test:us-west1:test-db', the ECONNREFUSED 127.0.0.1:5432 error you are still getting strongly points back to the Unix domain socket file not being ready or accessible when your application attempts to connect, leading to the pg library's fallback TCP connection.
"certificate had CN "", expected "
Solved! Go to Solution.
I was able to figure it out. There was an additional error that provided some indication of the issue.
"certificate had CN "", expected "
1) I changed my connection settings:
2) I had to recreated my database and choose:
This is located in the server certificate authority mode. By default when you create the database it is marked as Google managed CAS certificate authority. And with the most recent instructions it will fail.
I hope this helps anyone that may encounter this issue.
I was able to figure it out. There was an additional error that provided some indication of the issue.
"certificate had CN "", expected "
1) I changed my connection settings:
2) I had to recreated my database and choose:
This is located in the server certificate authority mode. By default when you create the database it is marked as Google managed CAS certificate authority. And with the most recent instructions it will fail.
I hope this helps anyone that may encounter this issue.