<?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>topic Re: Gaia API fails after 30 seconds in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243108#M8961</link>
    <description>&lt;P&gt;It is not about a buffer. I do not see how to make a call for&amp;nbsp;show-vlan-interfaces more granular.&lt;/P&gt;&lt;P&gt;Other APIs do not experience similar issue, this particular one is sub-optimally implemented. We had a support case and the conclusion was that Checkpoint is not going fix it.&amp;nbsp;It takes approximately 1.5 seconds per returned interface and with more than 20 interfaces the Gaia web server timeout is reached and 500 error is reported. Increasing the timeout at GAIA side can only up to the client timeout, and with many vlans it remains not scalable.&lt;/P&gt;&lt;P&gt;Listing the interfaces with&amp;nbsp;ifconfig | grep bond. is instant, so I ended up with expect and ssh.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 16:19:26 GMT</pubDate>
    <dc:creator>amk_</dc:creator>
    <dc:date>2025-03-05T16:19:26Z</dc:date>
    <item>
      <title>Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/178969#M7641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to check if there is any development related to query from 2019:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-timeout/m-p/52741" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-timeout/m-p/52741&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to get list of all interfaces from Gaia API 1.7, R81.10, specifically the vlan interfaces.&lt;/P&gt;&lt;P&gt;This works fine for devices where there is only a handful of vlans, but as soon as the information retrieval takes more than 30 seconds, I get back 500 and the login session gets closed.&lt;/P&gt;&lt;P&gt;When I try to loop via all physical and bond interfaces using them as parent argument for the call show-vlan-interfaces, at times I get the result but again, as soon as there are more vlans to return, problem is back.&lt;/P&gt;&lt;P&gt;The other thread indicated the timeout is related to apache, it is 5 minutes and it is not configurable/controllable.&lt;/P&gt;&lt;P&gt;Now the server seems to be gunicorn, is there any hint available on handling queries that take longer than 30 seconds?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;amk_&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 17:17:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/178969#M7641</guid>
      <dc:creator>amk_</dc:creator>
      <dc:date>2023-04-24T17:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243069#M8958</link>
      <description>&lt;P&gt;For anyone interested in the topic, support provided instruction about increasing web server timeout.&lt;/P&gt;&lt;P&gt;There is no intention to optimize the handling of the query itself. Listing interface vlans in expert CLI (ifconfig) takes no time, there is no reason the API call needs to take minutes.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 13:43:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243069#M8958</guid>
      <dc:creator>amk_</dc:creator>
      <dc:date>2025-03-05T13:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243095#M8960</link>
      <description>&lt;P&gt;A CLI does not have to buffer the output whereas the API does.&lt;BR /&gt;If the particular call has a lot of data on it (i.e. you have a lot of VLANs), it can take the API server a while to respond.&lt;BR /&gt;This is why, in general, we recommend making smaller, more focused API calls.&lt;/P&gt;
&lt;P&gt;How are you calling the API now?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 15:53:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243095#M8960</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-03-05T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243108#M8961</link>
      <description>&lt;P&gt;It is not about a buffer. I do not see how to make a call for&amp;nbsp;show-vlan-interfaces more granular.&lt;/P&gt;&lt;P&gt;Other APIs do not experience similar issue, this particular one is sub-optimally implemented. We had a support case and the conclusion was that Checkpoint is not going fix it.&amp;nbsp;It takes approximately 1.5 seconds per returned interface and with more than 20 interfaces the Gaia web server timeout is reached and 500 error is reported. Increasing the timeout at GAIA side can only up to the client timeout, and with many vlans it remains not scalable.&lt;/P&gt;&lt;P&gt;Listing the interfaces with&amp;nbsp;ifconfig | grep bond. is instant, so I ended up with expect and ssh.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 16:19:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243108#M8961</guid>
      <dc:creator>amk_</dc:creator>
      <dc:date>2025-03-05T16:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243210#M8963</link>
      <description>&lt;P&gt;Send me the TAC SR in a PM, I'll ask R&amp;amp;D about it.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 23:55:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243210#M8963</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-03-06T23:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API fails after 30 seconds</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243295#M8967</link>
      <description>&lt;P&gt;I checked with R&amp;amp;D and we are planning to optimize this particular API query, but no ETA.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 19:08:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-fails-after-30-seconds/m-p/243295#M8967</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-03-07T19:08:43Z</dc:date>
    </item>
  </channel>
</rss>

