- Marcin Jurkowski
- PowerBuilder
- Friday, 2 October 2020 11:59 AM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.