Hi,
I'm trying to set a timeout on the RESTClient.
At the moment if the API is unavailable the application waits for 20 seconds (this is a default action(?), I haven't changed anything).
I want this time to be reduced to 3 seconds.
When I set client timeout (to 0, 3 or 60) it doesn't change anything. It's always 20 seconds for me.
This is my sample code (PB 2017 R3 Build 1858). Am I doing something wrong?
RESTClient rest
rest = create RESTClient
rest.Timeout = 3
rest.Retrieve( dw_rest, "https://localhost:5001/api/client/abc")
dw_rest.RowCount()
Regards,
Marcin
The solution works for me.