Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/14/2024 08:11 AM
Hi Team,
I have requested a SAV role through ARS in Saviynt using SAV4SAV connector. The tasks were generated but when I run WS retry job, I am getting error like below.
{"auditDetails":{"call1":[{"headers":null,"statusCode":404,"description":null,"status":"Failed"},{"headers":null,"statusCode":404,"description":null,"status":"Failed"}]},"call1":{"headers":null,"statusCode":404,"description":null,"status":"Failed"}}
SAV 4 SAV connection is successful.
Below is the add access json that I have used.
{
"call":[
{
"name":"SAVRole",
"connection":"acctAuth",
"url":https://dev.****.com/ECM/api/v5/addremoveuserfromrole,
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\":\"${arsTasks.accountKey.name}\",\"rolename\":\"${entitlementValue.entitlement_value}\",\"operation\":\"1\"}",
"httpHeaders":{
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
Could you please help me to identify the issue.
Thank you,
Sudheer Kaneti.
Solved! Go to Solution.
02/16/2024 07:27 AM
02/16/2024 07:32 AM
Hi @SudheerKaneti,
The error message you're seeing, "statusCode":404`, typically indicates that the server couldn't find the requested resource. This usually means that the endpoint URL is incorrect or the resource itself does not exist.
Here are a few things you could check:
1. **Endpoint URL**: Make sure that the URL `https://dev.****.com/ECM/api/v5/addremoveuserfromrole` is correct. You might want to try accessing it directly in a web browser or using a tool like Postman to see if it's valid.
2. **Headers and Parameters**: Check if the headers and parameters in your request are correct. The server might be unable to find the resource because a necessary header or parameter is missing or incorrect.
3. **Resource Existence**: The resource (in this case, the role you're trying to access) might not exist. You could check in your application if the role exists.
Remember to replace any placeholders (like `${arsTasks.accountKey.name}`) with actual values before making the request.
Please Validate the above points and let us know if further assistance is required.
02/16/2024 10:59 AM
Hi Dixhant,
Thank you for the response,
We have actually found the issue and issue lies with the incorrect URL. The platform recently moved from migration testing environment tenant to Dev environment after testing the upgrade v23 but after moving, URLs in the JSON haven't changed in the connection which caused the issue.
Thank you,
Sudheer Kaneti.