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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
karandama2006
Creator
Creator

connection timeout thttprequest

We need to do a http get , I am using thttprequest component and the url is like

 

https://<token>@api.company.net/v1/business_units.json

 

When we use this url in browser , we can see JSON response.

 

But when I try to hit it with Talend I get connection timeout error :

 

What could be the issue ? it works in browser and not in Talend ?

 

[FATAL]: local_project- tHttpRequest_2 Connection timed out: connect
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 sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)

 

0683p000009M9Nk.png 

Labels (3)
1 Solution

Accepted Solutions
karandama2006
Creator
Creator
Author

Okay , So Timeout occurred because there was no proxy configured .

I tried it in Talend Open Studio where there is no firewall
I got HTTP basic , access denied  (something like that)  error.

 

Only thing to do was 

Enable authentication , Put token in Username , keep the password field blank , remove the token@ part from the URI 

View solution in original post

4 Replies
fdenis
Master
Master

there is token into your uri!!!
did you need authentifiction?
karandama2006
Creator
Creator
Author

yes there is a token , its not supposed to be there ?

 

https://3klkddl129wod293#cwkn@company.net/v1/business_units.json

 

something like this , the token is the authentication

Can the component be configured differently ?

fdenis
Master
Master

you just have to authenticate first with the good methode.
it may be usefull to use tRestClient if it's to get json.

https://help.talend.com/reader/mN51eDX~YKDNvIYUXAJtng/klovhJuukGBtSL8kmChudA

good luck
karandama2006
Creator
Creator
Author

Okay , So Timeout occurred because there was no proxy configured .

I tried it in Talend Open Studio where there is no firewall
I got HTTP basic , access denied  (something like that)  error.

 

Only thing to do was 

Enable authentication , Put token in Username , keep the password field blank , remove the token@ part from the URI