tRest timeout/connection

Highlighted
One Star

tRest timeout/connection

Is there a way to get around these errors? 
Exception in component tREST_1 - com.sun.jersey.api.client.ClientHandlerException: java.net.SocketException: Connection reset
Exception in component tREST_1 - com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection timed out: connect


I'm trying to run a few hundred thousand queries through a REST api using parallel processing. About 10 minutes in, I get that error. Is there anything I can do to fix this? I do not see any timeout settings on tRest.
Highlighted
Moderator

Re: tRest timeout/connection

Hi,
Could you please try to use tRestClient with Connection timeout and Receive timeout options to see if your job works?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Six Stars

Re: tRest timeout/connection

@xdshi 

 

I have tried with tRestClien and increased the timeout and it does not work

 

I am having issues passing global variable into the component.

It looks like it reads the component but errors on the response

<title>ERROR: The requested URL could not be retrieved</title>

 

Highlighted
Moderator

Re: tRest timeout/connection

Hello,

Here is a solution in this topic:https://community.talend.com/t5/Design-and-Development/ESB-tRestClient/m-p/202958 

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Six Stars

Re: tRest timeout/connection

@xdshi 

 

Thank you, yeah its the Proxy for one of the talend jobserver. 

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog