Error occurred when Consuming REST on local run

0
Hi,   I am consuming REST, followed all the steps mentioned on the link Consume a REST Service | Mendix Documentation  But it is not working when the application is running by locally run, it works perfectly fine when the application is deployed on the cloud. Why is that so? Does consuming REST works only on cloud?   Thanks and Regards, Harshraj Singh
asked
1 answers
0

This is the important part of the error message.

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.PrivilegedActionException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

It means your computer can’t validate the SSL certificate on the REST service you are calling. If it works when deployed to the Cloud but not locally, that would suggest your local truststore doesn’t have the correct certificates. Are you up to date with all your Windows updates locally?

answered