Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
hami1
Creator
Creator

tRest Component Returns an Exception : Read timed out

Dear Folks,

I came across an issue with tRest Component when trying to call an API with method type Post. Its working fine for upto some 100 or 120 calls after it reaches more than 120 its failed with the Error, Sometimes for only few requests (3 to 4 calls) it gets failed with the following Error:

com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out.

The Given below is the Settings in the tRest Component:

Http Body:

java.net.URLEncoder.encode("{\"loc\":\""+((String)globalMap.get("API_Generation.Location"))+"\"}","UTF-8")

Here am attaching the Screen-Shots of the Settings for the reference. Talend Version is Talend Open Studio for Big Data 7.1.1 , DB is MongoDB and Java 1.8

 

Thanks,

skh

 

 

 

Labels (2)
1 Reply
nfz11
Creator III
Creator III

There is probably something with the web service that it is getting overloaded and cannot service more requests so it doesn't return any data to some calls.  Then your client gets a time out exception like you are seeing.