Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 01:02 PM
I am trying to hit a REST API but I am repeatedly getting the message as:
DEBUG rest.RestProvisioningService - pullObjectsByRest - responseStatusCode ::null
Does this imply that my URL is incorrect or that my URL is correct and I am receiving no data from the source?
Solved! Go to Solution.
04/12/2022 02:12 PM
Hi,
You might not be having the intermediate cert in the truststore, if the connection is on https. Kindly work with support to validate the certificate/chain.
Also you can check if you are getting proper response to you call from target using the Postman REST call.
Thanks
Tushar Vatsa
04/12/2022 02:12 PM
Hi Tushar,
I am getting a response for the same call in POSTMAN.
My url is like this:
https://<url>?$format=json&$filter=status%20in%20%27t%27,%27f%27&fromDate=${(new Date()).format('yyyy-MM-dd')}
It is only when I add the fromDate parameter that I face this issue.
04/12/2022 02:12 PM
Hi Arushi,
The special character '$' needs to be encoded with %24 in the URL. Please try with the below URL format and let me know if you face any issues
URL: https://<<url>>?%24format=json&%24filter=status%20in%20%27t%27,%27f%27&fromDate=${(new Date()).format('yyyy-MM-dd')}
Thank you
Vedanth B.K