Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

responseCodeStatus:: null for REST API

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on September 21 2020 at 07:34 UTC

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?

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
3 REPLIES 3

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on September 21 2020 at 07:46 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on September 21 2020 at 08:29 UTC

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.

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on September 28 2020 at 14:20 UTC

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

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.