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.
This issue might arise due to one of the following reasons:
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 :
.env
file located at /opt/infoworks/platform/rest-api-service
using the command.Once the Rest API service restarts, you can continue with the requests to the API.