<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] tSetProxy with tRest in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232283#M22298</link>
    <description>Originally i was using tSetProxy before the tRest, but tRest didn't seem to picking up the tSetProxy details.&lt;BR /&gt;However, on the advanced tab of tRest there is a section where you can add proxy details.&lt;BR /&gt;Once i added the details here, i no longer had issues, and no longer needed the tSetProxy.</description>
    <pubDate>Mon, 07 Mar 2016 08:16:26 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2016-03-07T08:16:26Z</dc:date>
    <item>
      <title>[resolved] tSetProxy with tRest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232279#M22294</link>
      <description>Hi All, 
&lt;BR /&gt;This is my first attempt to use Talend to obtain data from an API and i am having some trouble getting it to work... 
&lt;BR /&gt;So far i have a very simple job that sets proxy settings (tSetProxy) and once this completes it goes to a tRest that connects to the API using a https address with authentication passed to it in a http header. 
&lt;BR /&gt;I have used tSetProxy successfully when access files on an ftp server so i am confident that the settings against this are correct. 
&lt;BR /&gt;However, i still get the following error when it hits the tRest: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tREST_1&lt;BR /&gt;com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection timed out: connect&lt;BR /&gt;	at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)&lt;BR /&gt;	at com.sun.jersey.api.client.Client.handle(Client.java:616)&lt;BR /&gt;	at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)&lt;BR /&gt;	at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72)&lt;BR /&gt;	at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:454)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.tREST_1Process(ZenDeskTest.java:718)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.tSetProxy_1Process(ZenDeskTest.java:560)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.runJobInTOS(ZenDeskTest.java:1086)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.main(ZenDeskTest.java:832)&lt;BR /&gt;Caused by: java.net.ConnectException: Connection timed out: connect&lt;BR /&gt;	at java.net.DualStackPlainSocketImpl.connect0(Native Method)&lt;BR /&gt;	at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)&lt;BR /&gt;	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.PlainSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.SocksSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at java.net.Socket.connect(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)&lt;BR /&gt;	at sun.net.NetworkClient.doConnect(Unknown Source)&lt;BR /&gt;	at sun.net.www.http.HttpClient.openServer(Unknown Source)&lt;BR /&gt;	at sun.net.www.http.HttpClient.openServer(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.https.HttpsClient.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)&lt;BR /&gt;	at java.net.HttpURLConnection.getResponseCode(Unknown Source)&lt;BR /&gt;	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)&lt;BR /&gt;	at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:218)&lt;BR /&gt;	at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:129)&lt;BR /&gt;	... 8 more&lt;/PRE&gt; 
&lt;BR /&gt;Which suggests that either the API didn't respond or there is a proxy issue. 
&lt;BR /&gt;Here's the fun part - if i run netstat while this job is running i see the following record: 
&lt;BR /&gt; 
&lt;PRE&gt; &amp;nbsp;TCP &amp;nbsp; &amp;nbsp;10.114.2.6:51867 &amp;nbsp; &amp;nbsp; &amp;nbsp; 185.12.82.1:443 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SYN_SENT &amp;nbsp; &amp;nbsp;&lt;/PRE&gt; 
&lt;BR /&gt;Well, this suggests that tRest is trying to access the API directly and not through the proxy - so it's ignoring the details given to it by the tsetproxy command... &amp;nbsp;I don't see any settings in tRest to force it to use the proxy settings so i am unsure how to proceed with this now. &amp;nbsp;I could also use a tJson component, but i cant see any way to set the authentication details in this one. 
&lt;BR /&gt;I'm a relative beginner when it comes to TOS so please be kind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; 
&lt;BR /&gt;Running Talend Open Studio for Data Integration v6.0.0, Build id: M4. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Scott</description>
      <pubDate>Thu, 04 Feb 2016 10:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232279#M22294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T10:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSetProxy with tRest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232280#M22295</link>
      <description>so...&lt;BR /&gt;I swapped out tRest with tRESTClient and i now have proxy options in this component.&lt;BR /&gt;However, not i get an error:&lt;BR /&gt;&lt;PRE&gt;Exception in component tRESTClient_1&lt;BR /&gt;javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:483)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:897)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:611)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.tRESTClient_1Process(ZenDeskTest.java:673)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.runJobInTOS(ZenDeskTest.java:1045)&lt;BR /&gt;	at microstrategy.zendesktest_0_1.ZenDeskTest.main(ZenDeskTest.java:791)&lt;/PRE&gt;&lt;BR /&gt;Which suggests the username and password are incorrect in the HTTP header - but testing the same values in PHP returns data without any issues...&lt;BR /&gt;Any suggests?</description>
      <pubDate>Thu, 04 Feb 2016 14:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232280#M22295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T14:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSetProxy with tRest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232281#M22296</link>
      <description>OK all sorted - has the Authorization values in the wrong place!!!</description>
      <pubDate>Thu, 04 Feb 2016 14:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232281#M22296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSetProxy with tRest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232282#M22297</link>
      <description>Hi Scott, 
&lt;BR /&gt;Can you elaborate please? Which one was the wrong place and which one is the right place? I am having the same problem. I am using tRestClient. Had the authorization code as query parameter and also as the header in Advanced settings. Both returned NotAuthorizedException error.&amp;nbsp; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Arvind.</description>
      <pubDate>Sat, 05 Mar 2016 13:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232282#M22297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-05T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tSetProxy with tRest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232283#M22298</link>
      <description>Originally i was using tSetProxy before the tRest, but tRest didn't seem to picking up the tSetProxy details.&lt;BR /&gt;However, on the advanced tab of tRest there is a section where you can add proxy details.&lt;BR /&gt;Once i added the details here, i no longer had issues, and no longer needed the tSetProxy.</description>
      <pubDate>Mon, 07 Mar 2016 08:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tSetProxy-with-tRest/m-p/2232283#M22298</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-07T08:16:26Z</dc:date>
    </item>
  </channel>
</rss>

