Inconsistent connection behaviour using tRestClient
Hi,
I'm facing an odd issue using tRestClient to perform an api get request.
First time I run the job after opening Talend studio is work fine return the expected api response, however any subsequent run it fails with "java.net.ConnectException: Connection refused: connect".
If I close and open studio again, load the job and run it it works again but just for the first time.
I tried the same requesi via postman several times and works fine.
Check for the timeout setting in the Advanced Setting option.
Connection Timeout : Set the amount of time, in seconds, that the client will attempt to establish a connection before it times out. If set to 0, the client will continue to attempt to open a connection indefinitely. (default: 30)
Receive Timeout : Set the amount of time, in seconds, that the client will wait for a response before it times out. If set to 0, the client will wait indefinitely. (default: 60 )