<?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: Socket Timeout when connecting via hanaClientPromise method in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714361#M4771224</link>
    <description>&lt;P&gt;We are using HDI&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2023 09:46:53 GMT</pubDate>
    <dc:creator>o_meier</dc:creator>
    <dc:date>2023-05-23T09:46:53Z</dc:date>
    <item>
      <title>Socket Timeout when connecting via hanaClientPromise method</title>
      <link>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaq-p/12714360</link>
      <description>&lt;P&gt;Dear colleagues,&lt;/P&gt;
  &lt;P&gt;I try to use the async/await syntax with the &lt;STRONG&gt; @sap/hana-client lib for Node-JS &lt;/STRONG&gt;as described in the following SAP Blog post: &lt;A href="https://blogs.sap.com/2022/04/05/sap-tech-bytes-hana-client-tools-for-javascript-developers-part-2-promises/"&gt;https://blogs.sap.com/2022/04/05/sap-tech-bytes-hana-client-tools-for-javascript-developers-part-2-promises/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;From DBeaver I can connect with the parameters&lt;/STRONG&gt; I specified, moreover I also doublechecked that I have the correct parameter names in use here: &lt;A href="https://help.sap.com/docs/SAP_HANA_CLIENT/f1b440ded6144a54ada97ff95dac7adf/4fe9978ebac44f35b9369ef5a4a26f4c.html"&gt;https://help.sap.com/docs/SAP_HANA_CLIENT/f1b440ded6144a54ada97ff95dac7adf/4fe9978ebac44f35b9369ef5a4a26f4c.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;But still I &lt;STRONG&gt;get a socket timeout&lt;/STRONG&gt; with below message when running the &lt;STRONG&gt;hanaClientPromise.connect &lt;/STRONG&gt;command:&lt;/P&gt;
  &lt;P&gt;'Connection failed (RTE:[89009] Socket connect timeout (60000 ms) (&amp;lt;some ip&amp;gt; -&amp;gt; &amp;lt;other ip&amp;gt;))'&lt;/P&gt;
  &lt;P&gt;Can someone support me with that issue?&lt;/P&gt;
  &lt;P&gt;Below a code snippet (sorry for the format, somehow it was not possible to put it into one code block with proper spacing)&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Oliver&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;const hanaClient = require("@sap/hana-client");&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;const hanaClientPromise = require("@sap/hana-client/extension/Promise.js");&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;.... &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;const conn = hanaClient.createConnection(); &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;const connParams = { host: systemParameters.host , port: systemParameters.port, user: systemParameters.user, password: systemParameters.password, encrypt: true, sslValidateCertificate: false }; &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;await hanaClientPromise.connect(conn, connParams); // here it is throwing the socket connect timeout of 60s &lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;const result = await hanaClientPromise.exec(conn, "SELECT * FROM DUMMY");&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2023 09:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaq-p/12714360</guid>
      <dc:creator>o_meier</dc:creator>
      <dc:date>2023-05-23T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Timeout when connecting via hanaClientPromise method</title>
      <link>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714361#M4771224</link>
      <description>&lt;P&gt;We are using HDI&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 09:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714361#M4771224</guid>
      <dc:creator>o_meier</dc:creator>
      <dc:date>2023-05-23T09:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Timeout when connecting via hanaClientPromise method</title>
      <link>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714362#M4771225</link>
      <description>&lt;P&gt;The following tutorial attempts to demonstrate using the SAP HANA Client with Node.js and includes an example that uses promises.  &lt;BR /&gt;&lt;A href="https://developers.sap.com/tutorials/hana-clients-node.html"&gt;Connect Using the SAP HANA Node.js Interface&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 11:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714362#M4771225</guid>
      <dc:creator>Dan_vL</dc:creator>
      <dc:date>2023-05-23T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Socket Timeout when connecting via hanaClientPromise method</title>
      <link>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714363#M4771226</link>
      <description>&lt;P&gt;Hi Daniel, &lt;/P&gt;&lt;P&gt;thanks for your fast reply.&lt;/P&gt;&lt;P&gt;What helped after all was a disableCloudRedirect parameter that I added as one of the connectionParams and set to true.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 12:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/socket-timeout-when-connecting-via-hanaclientpromise-method/qaa-p/12714363#M4771226</guid>
      <dc:creator>o_meier</dc:creator>
      <dc:date>2023-05-23T12:45:47Z</dc:date>
    </item>
  </channel>
</rss>

