Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Got null response statusCode with erroMsg - null

manish97sh
New Contributor III
New Contributor III

I am implementing CyberArk REST based integration with Saviynt. I am trying to import accounts from target to Saviynt but getting below error in import.

2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.868991097Z stdout F 2023-09-08 08:58:00,868 [quartzScheduler_Worker-6] DEBUG rest.RestProvisioningService - Got Webservice API Response: [error:Error azeunarkt006.guww.net: Name or service not known]
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869009297Z stdout F 2023-09-08 08:58:00,868 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - pullObjectsByRest - responseStatusCode ::null
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869044098Z stdout F 2023-09-08 08:58:00,868 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - Got showLogs = true
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869124798Z stdout F 2023-09-08 08:58:00,868 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - Got null response statusCode with erroMsg - null
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869305899Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] ERROR rest.RestProvisioningService - Exception in getting response in pullObjectsByRest :
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869325399Z stdout F java.lang.Exception: NullResponseFromTarget
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869332899Z stdout F at com.saviynt.provisoning.rest.RestUtilService.checkForErrorMsg(RestUtilService.groovy:1444)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869337699Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.pullObjectsByRest(RestProvisioningService.groovy:4437)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869341799Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsByPagination(RestProvisioningService.groovy:4148)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869345699Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccounts(RestProvisioningService.groovy:4088)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869348799Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService$_processAccountsFinal_closure11_closure78.doCall(RestProvisioningService.groovy:1643)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869354099Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService$_processAccountsFinal_closure11.doCall(RestProvisioningService.groovy:1639)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869361699Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsFinal(RestProvisioningService.groovy:1638)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869367199Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsFullBySequentialAndIterative(RestProvisioningService.groovy:1600)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869373599Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.importAccountsFull(RestProvisioningService.groovy:1428)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8693778Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.doImport(RestProvisioningService.groovy:137)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8693811Z stdout F at com.saviynt.ecm.integration.ExternalConnectionCallService.invokeExternalMethod(ExternalConnectionCallService.groovy:228)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8693852Z stdout F at SapImportJob.execute(SapImportJob.groovy:109)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8693883Z stdout F at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8693914Z stdout F at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8694195Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] DEBUG services.HttpClientUtilityService - Setting null for refreshTryCount and retryWait
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869432Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - Got showLogs = true
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.8695037Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] DEBUG rest.RestUtilService - Got showLogs = true
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869544901Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] DEBUG rest.RestProvisioningService - Error while getting Account Import response for url- https://removed/Password=******/api/Users is: null
 
2023-09-08T14:28:01+05:30-ecm-worker-2023-09-08T08:58:00.869559001Z stdout F 2023-09-08 08:58:00,869 [quartzScheduler_Worker-6] DEBUG rest.RestProvisioningService - Getting response statusCode null, so failing Account Import Job
 
 
Please find Connection JSON below:

## ConnectionJSON:

{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "https://###########/API/auth/LDAP/Logon/",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "application/json",
"properties": {
"userName": "#######",
"password": "#######"
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic asdfghjkl"
}
}
}

Please find ImportAccountEntJSON:
 
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"statusColumn": "customproperty7",
"activeStatus": [
"true"
],
"deleteLinks": true,
"accountThresholdValue": 200,
"correlateInactiveAccounts": false,
"inactivateAccountsNotInFile": true,
"deleteAccEntForActiveAccounts": true
},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://#########/api/Users",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpMethod": "GET",
"httpContentType": "application/json"
},
"listField": "Users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~int",
"name": "username~#~char",
"customproperty1": "source~#~char",
"customproperty2": "userType~#~char"
},
"makeProcessingStatus": true
}
}
}
}
 
 
Please let me know what is wrong in this configuration.
[This message has been edited by moderator to mask URL]
4 REPLIES 4

adriencosson
Valued Contributor
Valued Contributor

Hi @manish97sh,

At first, nothing is looking wrong is your JSONs.

However, have you tried using Postman to see if you correctly retrieve users in the response ?

Any chance you can share a sample anonymized response body of retrieving users to help you with adjusting the configuration?

Regards,
Adrien COSSON

manish97sh
New Contributor III
New Contributor III

Hi @adriencosson ,

These API's can't be tested in POSTMAN but we are using Swagger for checking response.
Please find below response body:


{   "Users": [     {       "id": 2,       "username": "Administrator",       "source": "CyberArk",       "userType": "Built-InAdmins",       "componentUser": false,       "vaultAuthorization": [         "AddUpdateUsers",         "AddSafes",         "AddNetworkAreas",         "ManageDirectoryMapping",         "ManageServerFileCategories",         "AuditUsers",         "BackupAllSafes",         "RestoreAllSafes",         "ResetUsersPasswords",         "ActivateUsers"       ],       "location": "\\",       "personalDetails": {         "firstName": "",         "middleName": "",         "lastName": ""       }     },

adriencosson
Valued Contributor
Valued Contributor

Hi @manish97sh,

Got it, your mapping is looking good.

By looking at your logs, there is the below error : 

Got Webservice API Response: [error:Error azeunarkt006.guww.net: Name or service not known]

This means azeunarkt006.guww.net is not reachable from Saviynt.

Either try to use IP in your configuration or ask through a FreshDesk ticket to perform DNS Resolution for the same.

Regards,
Adrien COSSON

manish97sh
New Contributor III
New Contributor III

@adriencosson , Thanks for quick response. I tried with IP and now it is not giving null reponse but giving Connect timeout error.

Please find below error:

 

2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977045882Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] ERROR services.HttpClientUtilityService - Error - Number of retries exhausted due to [Connect to IP:PORT No [/10.101.220.5] failed: connect timed out], no more retry will be performed. Failed to process [url - https://IP:PORT/PasswordVault/api/Users]
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977051082Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - timeout validated for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977054182Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - got response for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977056782Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - timeout validated for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977058983Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - got response for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977063583Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - timeout validated for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977065883Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - got response for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977068083Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - timeout validated for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977070783Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG services.HttpClientUtilityService - got response for api...
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977073183Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG rest.RestUtilService - Got showLogs = true
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977078383Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG rest.RestProvisioningService - Got Webservice API Response: [responseText:Failed to process [url - https://IP:PORT/Password=******/api/Users] due to [Connect to 10.101.220.5:443 [/10.101.220.5] failed: connect timed out] after [3] retries, statusCode:408]
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977080883Z stdout F 2023-09-08 13:46:52,976 [quartzScheduler_Worker-8] DEBUG rest.RestUtilService - pullObjectsByRest - responseStatusCode ::408
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977193483Z stdout F 2023-09-08 13:46:52,977 [quartzScheduler_Worker-8] ERROR rest.RestProvisioningService - Exception in getting response in pullObjectsByRest :
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977214983Z stdout F java.lang.Exception: Failed to process [url - https://10.101.220.5:443/PasswordVault/api/Users] due to [Connect to 10.101.220.5:443 [/10.101.220.5] failed: connect timed out] after [3] retries
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977222283Z stdout F at com.saviynt.provisoning.rest.RestUtilService.checkForErrorMsg(RestUtilService.groovy:1447)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977226683Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.pullObjectsByRest(RestProvisioningService.groovy:4437)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977230983Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsByPagination(RestProvisioningService.groovy:4148)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977234583Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccounts(RestProvisioningService.groovy:4088)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977237683Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService$_processAccountsFinal_closure11_closure78.doCall(RestProvisioningService.groovy:1643)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977248384Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService$_processAccountsFinal_closure11.doCall(RestProvisioningService.groovy:1639)
 
2023-09-08T19:16:53+05:30-ecm-worker-2023-09-08T13:46:52.977251584Z stdout F at com.saviynt.provisoning.rest.RestProvisioningService.processAccountsFinal(RestProvisioningService.groovy:1638)