Rest API retrieve Safes are getting 500 http return code in postman or get 200 http return code but html error page by other script
Symptom
in webapplication.log,
it has EPVDL005E Application Error! Page=[https://<IIS_Server_Ip>/PasswordVault/WebServices/PIMServices.svc/Safes] Error=[There was no channel actively listening at 'https://<IIS_Server_Ip>/PasswordVault/WebServices/PIMServices.svc/Safes'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening.] Stack Trace=[ at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()]
[20/07/2020 | 14:17:25.199805] | {pid= 5176} | {tid= 7760} | :: | EPVCW003E Error in CAQueryStringFactory.cs module - invalid raw url
Environment
11.3;11.4;11.5 Cyber-Ark API/SDK REST API
Cause
PIM services HTTPS not enabled in IIS
Resolution
In the PasswordVault installation folder (C:\inetpub\wwwroot\PasswordVault) , open the web.config file
under service tag, make sure bindingConfiguration="httpsBinding", in PIMServices, as shown in the following example:
<system.serviceModel>
<services>
...
<service behaviorConfiguration="defaultBehavior" name="CyberArk.PasswordVault.WebServices.WF.PIMServices">
<endpoint name="PIMEndpoint" ... bindingConfiguration="httpsBinding" ... ./>
</service>
...
</services>
...
</system.serviceModel>
If this entry is not exist, refer to the URL below to add the entry: https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/11.4/en/Content/WebServices/Implementing%20Privileged%20Account%20Security%20Web%20Services%20.htm#Return