Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Connection timed out error for rest connector

pinky_chauhan
New Contributor II
New Contributor II

We encountered the following errors when running either the account import or access import job. The client's infrastructure team confirmed they are not receiving any traffic from Saviynt to the target, meaning Saviynt isn't sending anything from its server.

Error ConnectTimeoutException: 
org.apache.http.conn.ConnectTimeoutException: Connect to hostname:port [hostname/IP, hostname/IP] failed: connect timed out at
called api...
Timeout exception while executing request, retrying request.
Inside timeout retry call
Error - Number of retries exhausted due to [Connect to hostname:portno [hostname/ip, hostname/ip] failed: connect timed out], no more retry will be performed. Failed to process [url - https://{hostname:ip}/api/v1/data/{tablename}/rows]
timeout validated for api...
got response for api...
timeout validated for api...
got response for api...
timeout validated for api...
got response for api...
timeout validated for api...
got response for api...
Got showLogs = true
Got Webservice API Response: [responseText:Failed to process [url - https://{hostname:ip}/api/v1/data/{tablename}/rows] due to [Connect to hostname:portno [hostname/ip, hostname/ip] failed: connect timed out] after [3] retries, statusCode:408]
pullObjectsByRest - responseStatusCode ::408
Exception in getting response in pullObjectsByRest

We added the following ConfigJSON, but the same error persisted, so we increased the timeout values:

{
"showLogs":true,
"connectionTimeoutConfig": {
"connectionTimeout": 10,
"readTimeout": 800,
"writeTimeout": 60,
"retryWait": 5,
"retryCount": 3
}
}

After updating to higher values:

{
"showLogs":true,
"connectionTimeoutConfig": {
"connectionTimeout": 1000,
"readTimeout": 3600,
"writeTimeout": 1000,
"retryWait": 100,
"retryCount": 10
}
}

We are now getting the following response:

Got Webservice API Response: [error:Error Connect to hostname:port [hostname/ip, hostname/ip] failed: Connection timed out (Connection timed out)]
pullObjectsByRest - responseStatusCode ::null
 

Connectionjson

 "authentications":{
      "userAuth":{
         "authType":"oauth2",
         "url":"https://hostname:port/api/v1/token",
         "httpMethod":"POST",
         "httpParams":{
           "client_id": "*",
        "client_secret": "*",
       "grant_type": "client_credentials"
         },
         "httpHeaders":{
            "Accept":"application/json"
         },
         "httpContentType":"application/x-www-form-urlencoded",
         "expiryError":"ExpiredAuthenticationToken",
         "retryFailureStatusCode":[
            401,403,400,null,408
         ],
         "authError":[
            "Unauthorized",
"invalid_client"
         ],
         "timeOutError":"Read timed out",
         "errorPath":"error",
         "maxRefreshTryCount":5,
         "tokenResponsePath":"access_token",
         "tokenType":"Bearer",
         "accessToken":"Bearer abcd"
      }
   }
}

Postman response:-

pinky_chauhan_0-1729254369711.png

 

pinky_chauhan_1-1729254475114.png

 

ImportAccountEntJSON

{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://{hostname:portno}/api/v1/data/{table}/rows",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpParams": "{\"columns\":[\"HostID\",\"HostName\",\"GroupTrusteeId\",\"GroupSiteCollectionId\",\"GroupSid\",\"GroupSamAccountName\",\"GroupNTStyleName\",\"MemberTrusteeId\",\"MemberSid\",\"MemberDisplayName\",\"MemberDomain\",\"MemberSamAccountName\",\"MemberNTStyleName\",\"MemberType\",\"MemberTypeDescription\"],\"filters\": [{\"columns\": \"GroupSiteCollectionId\",\"function\": \"equals\",\"value\": \"4991\"}]}",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "MemberSid~#~char",
"name": "MemberSamAccountName~#~char",
"displayName": "MemberDisplayName~#~char",
"customproperty1": "GroupTrusteeId~#~char",
"customproperty2": "GroupSiteCollectionId~#~char",
"customproperty3": "GroupSid~#~char",
"customproperty4": "GroupSamAccountName~#~char",
"customproperty5": "GroupNTStyleName~#~char",
"customproperty6": "MemberTrusteeId~#~char",
"customproperty7": "MemberDomain~#~char",
"customproperty8": "MemberNTStyleName~#~char",
"customproperty9": "MemberType~#~char",
"customproperty10": "MemberTypeDescription~#~char"
}
}
}
},
"entitlementParams": {},
"acctEntParams": {}
}

4 REPLIES 4

NM
Honored Contributor III
Honored Contributor III

@pinky_chauhan is it a on prem application?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

pinky_chauhan
New Contributor II
New Contributor II

@NM yes

alvian
Regular Contributor
Regular Contributor

ensure the connection between SC Client and your target system is opened.. you can try to CURL or telnet <port> to the target system 

rushikeshvartak
All-Star
All-Star

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.