tRest timeout/connection

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.
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.
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>

 

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.
Six Stars

Re: tRest timeout/connection

@xdshi 

 

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

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

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch