Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Basit
Contributor III
Contributor III

tServiceNowConnection fails with Timeout

Hi there,

 

we are trying to use the ServiceNow components in one of our jobs. Unfortunately we are getting Timeout errors when trying to connect to ServiceNow:

Exception in component tServiceNowConnection_1 (Rest_API)
org.apache.http.conn.HttpHostConnectException: Connect to apletestdev.service-now.com:443 [myservicenow.service-now.com/<ip>] failed: Connection timed out: connect
	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:138)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:357)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:218)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:194)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
	at workspace.rest_api_0_1.Rest_API.tServiceNowConnection_1Process(Rest_API.java:519)
	at workspace.rest_api_0_1.Rest_API.tJava_1Process(Rest_API.java:426)
	at workspace.rest_api_0_1.Rest_API.runJobInTOS(Rest_API.java:4043)
	at workspace.rest_api_0_1.Rest_API.main(Rest_API.java:3892)
Caused by: java.net.ConnectException: Connection timed out: connect
	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:250)
	at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:118)
	... 13 more

I can run requests with tRestClient without any errors but I would prefer to use the ServiceNow components.

Note that I am using a proxy on my machine so I am not sure if this has any impact because I had a lot of troubles with Talend when using a proxy.

 

While debugging I found that the error occurs in the HttpClientConnectionOperator class while trying to execute 

conn.bind(sock);

 

Do you guys have any idea why Talend has problems using the ServiceNow components while everything else works fine?

 

Regards,

 

Basit

Labels (2)
2 Replies
TRF
Champion II
Champion II

Did you try to configure your proxy with tSetProxy component?
Basit
Contributor III
Contributor III
Author

Hi TRF,

 

tSetProxy does not change the behaviour.

I even tried it with tJava component and the System.setProperty() method (both for http and https proxy).

 

It seems to be an issue with the ServiceNow components.

 

Basit