cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Calling API using GetJSON throws error

psskps
6-Contributor

Calling API using GetJSON throws error

Hi,

I am getting the following error when I call the API using GetJSON snippet.

 

JavaException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

But the when I hit the API url separately it returns data.

Need some help in this.

 

Thank you in advance,

Sadagopan PSSKP

1 REPLY 1
VladimirN
24-Ruby II
(To:psskps)

 Hi,

 

Read this article - "Error when trying to access external service over SSL using the PostJSON method available in the ContentLoaderFunctions resource in ThingWorx": https://www.ptc.com/en/support/article/cs282851 

Announcements


Top Tags