‎2024 Aug 29 3:09 PM - edited ‎2024 Aug 29 3:11 PM
Hi,
I am trying to run my application locally with data from a deployed BTP PostgreSQL instance. I am successful in running an SSH tunnel and connecting to the DB via DBeaver.
However when I adjust the settings in my CAP Application, I do see during startup that the settings are taken into account correctly.
However when the application is launched I get an immediate 'Timeout'.
Would anyone be able to assist me?
Thanks! 
Request clarification before answering.
Set host as 127.0.0.1; localhost does not work in this case when ip6 stack is present.
Also, you need to insist on SSL. So, you have to either provide ssl configurations from the credentials of the service
ssl: {
ca: pg_cred.sslrootcert,
servername: pg_cred.hostname
}
or do not verify SSL certificates with :
ssl: { rejectUnauthorized: false }
or set environment variables:
NODE_TLS_REJECT_UNAUTHORIZED="0"
PGSSLMODE="require"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.