Article - CS308816

Time out error while calling GetJSON service available under Content Loader functions in Thingworx

Modified: 12-Oct-2023   


Applies To

  • ThingWorx Platform 8.4

Description

  • Time out error while calling GetJSON service available under Content Loader functions
  • Stack Trace for error logs contains
    • [L: ERROR] [O: E.c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-80-exec-2] [context: com.thingworx.webservices.context.HttpExecutionContext@756c0b4c][message: Execution error in service script [incident] :: Connect to <cust>.service-now.com:443 [<cust>.service-now.com/149.96.37.127] failed: Connection timed out: connect] java.net.ConnectException: Connection timed out: connect
          at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
          at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
          at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
          at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
          at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
          at java.net.PlainSocketImpl.connect(Unknown Source)
          at java.net.SocksSocketImpl.connect(Unknown Source)
          at java.net.Socket.connect(Unknown Source)
          at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
          at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
          ... 84 common frames omitted
      Wrapped by: org.apache.http.conn.HttpHostConnectException: Connect to <cust>.service-now.com:443 [<cust>.service-now.com/149.96.37.127] failed: Connection timed out: connect
          at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:158)
          at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
          at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
          at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
          at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
          at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
          at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
          at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
          at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
          at com.thingworx.common.utils.HttpUtilities.LoadJSON(HttpUtilities.java:699)
          at com.thingworx.common.utils.HttpUtilities.LoadJSON(HttpUtilities.java:653)
          at com.thingworx.resources.content.ContentLoader.GetJSON(ContentLoader.java:362)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261)
          at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50)
          at com.thingworx.handlers.ServiceHandlerBase.processServiceWithMetrics(ServiceHandlerBase.java:48)
          at com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequestDirect(InternalServiceHelper.java:117)
          at com.thingworx.entities.helpers.InternalServiceHelper.processServiceRequest(InternalServiceHelper.java:73)
          at com.thingworx.entities.ServiceProviderEntity.processServiceRequest(ServiceProviderEntity.java:53)
          at com.thingworx.dsl.engine.adapters.VirtualFunction.call(VirtualFunction.java:145)
          ... 62 common frames omitted
This is a printer-friendly version of Article 308816 and may be out of date. For the latest version click CS308816