One Star

tGoogleAnalyticsInput proxy

Hello
I have used tGoogleAnalyticsInput composant on my development machine and everything has run perfectly.
Now I try to install it on the production environment and I have an issue (error message copied after). I think that is a proxy limitation due to my environment, but I realy don't know what I have to ask to the network team to resolve my issue. If someone have an idea ...
Thanks
Fabrice

Exception in component tGoogleAnalyticsInput_3
java.net.UnknownHostException: accounts.google.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:268)
at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
at de.cimt.talendcomp.googleanalytics.GoogleAnalyticsInput.executeDataQuery(GoogleAnalyticsInput.java:327)
at de.cimt.talendcomp.googleanalytics.GoogleAnalyticsInput.executeQuery(GoogleAnalyticsInput.java:370)
at ga_rps.general_0_1.General.tFileInputExcel_2Process(General.java:2508)
at ga_rps.general_0_1.General.tFileDelete_1Process(General.java:530)
at ga_rps.general_0_1.General.runJobInTOS(General.java:4583)
at ga_rps.general_0_1.General.main(General.java:4438)
1 REPLY
Seventeen Stars

Re: tGoogleAnalyticsInput proxy

There are a component to set the proxy called tSetProxy. Add this component ad first to your job and configure the proxy you need.
Ask the administrators about the proxy server and port and if there are proxy authentication is needed or not.
Production machines are often not connected to the internet! It could be necessary to set firewall rules to enable the google servers.
Unfortunately in my environment I do not have this problem. I suggest let the administrator analyse on the dev machine which server will be contacted from the tGoogleAnalytics (I use the Java API for this component and does not have inspected its code).