Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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)
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
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 ?
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