Infoworks 5.3.0
Knowledge Base Articles

Getting Rest API Timeout Issue

Description

The API to add tables to a source and crawl metadata might time out in cases where the request contains more than 250 tables to be added to the source.

Root Cause

This issue might arise due to one of the following reasons:

  • Restraint on the payload size
  • Number of tables to add in the request body to the Rest API

To Resolve

There are 2 ways of resolving this issue:

Resolution 1: If the user needs to add more than 250 tables to the source, try splitting the request into smaller batches which contains a maximum of 250 tables each. The user should be able to add all the tables using the smaller batch requests to the API now.

Resolution 2: The other way of resolving the issue is by increasing the Rest API service timeout value from 10000 to a higher number (such as, 300000). This will prevent the API from timing out when trying to add more than 250 tables to the source. The steps to implement this are as follows :

  1. Sign in to Infoworks Edge Node.
  2. Switch to Infoworks user.
  3. Open the .env file located at /opt/infoworks/platform/rest-api-service using the command.
  4. Edit the file to increase the Rest API service timeout value from 10000 to 300000, and save the changes to the file.
  5. Restart the Rest API service.

Once the Rest API service restarts, you can continue with the requests to the API.