<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Developing locally with PostgreSQL BTP Instance in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812211#M4843746</link>
    <description>&lt;P&gt;Set host as 127.0.0.1; localhost does not work in this case when ip6 stack is present.&lt;/P&gt;&lt;P&gt;Also, you need to insist on SSL. So, you have to either provide ssl configurations from the credentials of the service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;ssl: {
        ca: pg_cred.sslrootcert,
        servername: pg_cred.hostname
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or do not verify SSL certificates with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;ssl: { rejectUnauthorized: false }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or set environment variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;NODE_TLS_REJECT_UNAUTHORIZED="0"
PGSSLMODE="require"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 10:46:17 GMT</pubDate>
    <dc:creator>Dinu</dc:creator>
    <dc:date>2024-08-30T10:46:17Z</dc:date>
    <item>
      <title>Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaq-p/13811337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;However when I adjust the settings in my CAP Application, I do see during startup that the settings are taken into account correctly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/159548i56D0194570AE00FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However when the application is launched I get an immediate 'Timeout'.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorrevynckier_0-1724940647205.png" style="width: 700px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/159550i3D68B0BFF1425BDE/image-dimensions/700x98?v=v2" width="700" height="98" role="button" title="jorrevynckier_0-1724940647205.png" alt="jorrevynckier_0-1724940647205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Would anyone be able to assist me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaq-p/13811337</guid>
      <dc:creator>jorrevynckier</dc:creator>
      <dc:date>2024-08-29T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13811680#M4843679</link>
      <description>&lt;P&gt;To be not blocked in developing I would suggest you use a PostgreSQL docker container during development. Check&amp;nbsp;&lt;A href="https://github.com/gregorwolf/pg-beershop" target="_blank"&gt;https://github.com/gregorwolf/pg-beershop&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://github.com/cap-js/cds-dbs/tree/main/postgres" target="_blank"&gt;https://github.com/cap-js/cds-dbs/tree/main/postgres&lt;/A&gt;&amp;nbsp;for samples.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 20:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13811680#M4843679</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2024-08-29T20:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812211#M4843746</link>
      <description>&lt;P&gt;Set host as 127.0.0.1; localhost does not work in this case when ip6 stack is present.&lt;/P&gt;&lt;P&gt;Also, you need to insist on SSL. So, you have to either provide ssl configurations from the credentials of the service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;ssl: {
        ca: pg_cred.sslrootcert,
        servername: pg_cred.hostname
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or do not verify SSL certificates with :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;ssl: { rejectUnauthorized: false }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or set environment variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt;NODE_TLS_REJECT_UNAUTHORIZED="0"
PGSSLMODE="require"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 10:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812211#M4843746</guid>
      <dc:creator>Dinu</dc:creator>
      <dc:date>2024-08-30T10:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812305#M4843764</link>
      <description>I just added the environment variables and it worked! Thanks!</description>
      <pubDate>Fri, 30 Aug 2024 11:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812305#M4843764</guid>
      <dc:creator>jorrevynckier</dc:creator>
      <dc:date>2024-08-30T11:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812306#M4843765</link>
      <description>Thanks for the suggestion gregor! I was going to try this, but since Dinu found the solution, I will keep this for a future reference.</description>
      <pubDate>Fri, 30 Aug 2024 11:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812306#M4843765</guid>
      <dc:creator>jorrevynckier</dc:creator>
      <dc:date>2024-08-30T11:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Developing locally with PostgreSQL BTP Instance</title>
      <link>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812362#M4843778</link>
      <description>Can you please check if this informaiton is available at &lt;A href="https://github.com/cap-js/cds-dbs/tree/main/postgres" target="_blank"&gt;https://github.com/cap-js/cds-dbs/tree/main/postgres&lt;/A&gt; and if not contribute it?</description>
      <pubDate>Fri, 30 Aug 2024 12:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/developing-locally-with-postgresql-btp-instance/qaa-p/13812362#M4843778</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2024-08-30T12:34:40Z</dc:date>
    </item>
  </channel>
</rss>

