Getting error message for get rest method without authentication

rai5
Mega Guru

Hello, 

 

My get rest method is not functioning correctly when setting it up without authentication.

 

Error Message: Request not sent to uri= https://randomuser.me/api/?results=20 : org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted

 

I am attaching a screenshot of the rest method configuration. It is a test API for random users when used from the browser and postman it works perfectly.

1 ACCEPTED SOLUTION

rai5
Mega Guru

The solution was to download the ssl cert from the server using the browser and imported into the ServiceNow table sys_certificate. This was only in my new PDI, old instances that migrated from previews versions did not have this issue.

View solution in original post

5 REPLIES 5

Karan Chhabra6
Mega Sage
Mega Sage

Hi @rai5 ,

 

Are you using a mid-server?

That is the funny thing, I am not using a mid server.

rai5
Mega Guru

The solution was to download the ssl cert from the server using the browser and imported into the ServiceNow table sys_certificate. This was only in my new PDI, old instances that migrated from previews versions did not have this issue.

Hi, Im having the same issue but I dont understand what was your solution, could you give me more context pls