Article - CS332611

Executing REST API calls using ContentLoaderFunctions returns "PKIX path building failed unable to find valid certification path to requested target" in ThingWorx Platform

Modified: 20-Nov-2025   


Applies To

  • ThingWorx Platform 8.3 to 9.7

Description

  • Executing REST call to external ThingWorx server from a different ThingWorx server displays PKIX path building failed
  • REST call from one ThingWorx server to another ThingWorx server failing after a recent cert change activity on another server
  • While posting the REST API call from ThingWorx to another server, getting the error saying SSL handshake exception for the REST API
  • When interacting with custom REST APIs, the ThingWorx ContentLoaderFunctions Resource will be called to invoke one of the following Services which results in a PKIX path building failed error
    • LoadImage
    • GetCookies
    • GetJSON
    • GetText
    • GetXML
    • PostBinary
    • PostImage
    • PostJSON
    • PostMultipart
    • PostText
    • PostXML
  • Loadbinary service is falling with PKIX path building error
  • Executing any of the ContentLoaderFunctions services (e.g. GetJSON, PostJSON) fails with a PKIX path building error message
  • Trying to get data from another server through API using Content Loader Function but it's failing with error in <ThingworxStorage>\logs\ApplicationLog.log:
    • sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is a printer-friendly version of Article 332611 and may be out of date. For the latest version click CS332611