TREST Client Local Project Connection

Five Stars

TREST Client Local Project Connection

Hi 

I am using a TREST Client object to test a rest service in my local machine and it's timing out always.

The same URL is working fine in my browser.

http://maps.googleapis.com/maps/api/geocode/xml?address=Los+Angeles&sensor=false

 

In TREST Client URL i use is 

"http://maps.googleapis.com"

Relative Path "/maps/api/geocode/xml?address=Los+Angeles&sensor=false"

 

Any suggestion towards the same , would be great. 

 

************

Error Message :

 

Exception in component tRESTClient_1
javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking http://maps.googleapis.com/maps/api/geocode/json%3Faddress=Los+Angeles&sensor=false: Connection timed out: connect
at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:582)
at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:564)
at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1144)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1094)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:894)


Accepted Solutions
Community Manager

Re: TREST Client Local Project Connection

Hmmmm, it works when I try it through Studio. I can only think you have some sort of proxy configured for your browser


All Replies
Community Manager

Re: TREST Client Local Project Connection

Just place the whole path in your URL. Don't worry about splitting it up and using the relative path option.

Five Stars

Re: TREST Client Local Project Connection

Thanks for you response. I had tried taking the full url too. It is still the same.
Community Manager

Re: TREST Client Local Project Connection

Hmmmm, it works when I try it through Studio. I can only think you have some sort of proxy configured for your browser

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download