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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Services Publish to Talend Cloud

Learn how to publish your API Services to Talend Cloud

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now