> Source: [sk183501](https://support.checkpoint.com/results/sk/sk183501)

# sk183501 - API commands sent from an external host to a Gaia OS server fail due to timeout

| Property | Value |
|----------|-------|
| Solution ID | sk183501 |
| Date Created | 2025-05-27 |
| Last Modified | 2025-05-30 |
| Technical Level | Advanced |
| Products | Security Gateway, Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R81.10 (EOS), R82.10, R82, R81.20, R82.10, R81 (EOS), R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS), R81.20, R82 |
| OS | Gaia |

## Symptoms

- * API commands sent from an external host to a Gaia OS server fail due to timeout.

* The `/var/log/gaia_api_server.log` file on the Gaia OS server contains lines similar to these:

  (the example below is for the API command "`mgmt_cli show users --context gaia_api`")

  `09/04/25 15:32:05: MainThread: infra.pipeline: ERROR: Failed to handle request, reason: '1'`  
  `
  09/04/25 15:32:05: MainThread: infra.pipeline: ERROR: 11'`  
  `
  Traceback (most recent call last):`  
  `
  File "/rest_api/ckp/infra/urlGeneratorIS.py", line XX, in actor`  
  `
  res = execute(inst, requestData)`  
  `
  File "/rest_api/ckp/infra/pipeline.py", line XX, in execute`  
  `
  ret = inst.Handler_RESPONSE().serialize()`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in __init__`  
  `
  self.populate()`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in populate`  
  `
  self.users.append(UserV18().populate(userDict.get(NAME)))`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in populate`  
  `
  User.populateFromUserFactory(self, name)`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in populateFromUserFactory`  
  `
  self.userFactory = UserFactory()`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in __init__`  
  `
  self.processData()`  
  `
  File "/rest_api/ckp/objects/users.py", line XX, in processData`  
  `
  XMLResult = clish.runClish("show user {} lock-out".format(user), lock, clish.outXml, False)`  
  `
  File "/rest_api/libs/clish.py", line XX, in runClish`  
  `
  returnCode, output, error = command_factory.execFactoryExecutor(clishCmd, ws.get_user_env())`  
  `
  File "/rest_api/libs/command_factory.py", line XX, in execFactoryExecutor`  
  `
  tup = p.communicate()KAIDO/`  
  `
  File "/opt/CPsuite-R81.20/fw1/Python/lib/python3.7/subprocess.py", line XX, in communicate`  
  `
  stdout, stderr = self._communicate(input, endtime, timeout)`  
  `
  File "/opt/CPsuite-R81.20/fw1/Python/lib/python3.7/subprocess.py", line XX, in _communicate`  
  `
  ready = selector.select(timeout)`  
  `
  File "/opt/CPsuite-R81.20/fw1/Python/lib/python3.7/selectors.py`

## Cause

Gaia OS has the default timeout for handling API requests.

If it takes more time for the Gaia OS to generate an API response then the value of this timeout, the Gaia OS fails the API request.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
