Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/20/2024 05:52 AM
Hi. I am trying to set up a connectionJson that doesn't use any authentication while including some test connection params in that connectionJson to actually test connectivity in the connectionJson. This is what I currently have but am not sure what I am overlooking here as I am not seeing any API response in the logs despite test connection returning successful.
{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"testConnectionParams": {
"responseColsToPropsMap": {},
"http": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"requestBody": "",
"httpParams": "",
"httpHeaders": {},
"httpContentType": "application/json"
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
}
}
}
}
}
09/20/2024 06:06 AM
@jralexander137 , if this is dummy ConnectionJSON then dont use testConnectionParams. It is not mandatory.
{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5
}
}
}
09/20/2024 06:20 AM
So my reasoning behind using testConnectionParams is to just test connectivity to the system without bringing in any account data. Are you saying that if its a dummy connectionJson then I cant include testConnectionParams? Or just not required kind of thing.
09/20/2024 06:23 AM
not required kind of thing. I now understand why you are using it.
Is that API call working in postman? if yes, I would say try to import couple of accounts.
Else enable debug logs for connector and share logs.
09/20/2024 06:26 AM
How can I enable debug for a connection?
09/20/2024 06:36 AM
ConfigJSON
{
"connectionTimeoutConfig": {
"connectionTimeout": 10,
"readTimeout": 60,
"writeTimeout": 60,
"retryWait": 2,
"retryCount": 3
},
"showLogs": true
}
09/20/2024 06:58 AM
Right, forgot to add that config to connection. TestConnection with and without testConnectionParams doesnt show anything in the logs but I do see what appears to be a connectivity failure when trying to import accounts. Is there not someway to get testConnectionParams in connectionJson working?
09/20/2024 07:04 AM
09/20/2024 07:34 AM - edited 09/20/2024 07:37 AM
Fair enough. This is the connectionJson i have with a testConnectionsParam value but not seeing anything in the logs like i do when i try to do account import with the same endpoint. Nothing meaningful in logs showing why the testConnecitonParams might not be working.
{
"authentications": {
"userAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"testConnectionParams": {
"http": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successResponse": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"successResponsePath": "ResponseMessage",
"errorPath": "ResponseMessage"
}
}
}
}
And here is the acctEntImport config that gets entries in logs.
{"accountParams":{"connection":"userAuth","processingType":"SequentialAndIterative","call":{"call1":{"listField":"Users","keyField":"name","http":{"url":"https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1","httpMethod":"GET","httpContentType":"application/json","httpHeaders":{}},"colsToPropsMap":{"name":"LoginId~#~char"}}}}}
09/20/2024 07:41 AM - edited 09/20/2024 07:42 AM
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.‼️‼️⚠️
09/20/2024 08:29 AM
Here is the requested info
09/20/2024 08:36 AM
CURL please
09/20/2024 12:55 PM
is the curl results in the screenshot not sufficient?
09/20/2024 02:19 PM
How auth and content type is passed is not provided . Without adequate information it will be hard to suggest