Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Non responsive endpoints
Morning,
When using HTTPClient_services to send a HTTP request, sometimes the call just sits there spinning its wheels.
When we enter the same url into the browser it appears as if the whole site is down or inaccessible.
The assumption therefore is that HTTPClient_Services is waiting for a response before returning.
Is there a way to have HTTPClient_Services back off when the site is non responsive?
When using HTTPClient_services to send a HTTP request, sometimes the call just sits there spinning its wheels.
When we enter the same url into the browser it appears as if the whole site is down or inaccessible.
The assumption therefore is that HTTPClient_Services is waiting for a response before returning.
Is there a way to have HTTPClient_Services back off when the site is non responsive?
Comments
There is a default timeout of 30 minutes. If you want to reset this to another timeout, just call this before your SendHTTPRequest call:
HTTPClient_Services('SetTimeoutDuration', 60) ; // 60 seconds
Let me know if this helps.
I considered setting the UseAsynchronous flag to false so it would skip that loop.
Now that I know the actual consequences of that, I'll stick to the default.
Would I be correct to assume then, that if the timeout kicks in, there will then be no response and an error that will then be passed through error_services?