Hi ,
we are Outsystem11 platform server with .NET flavor with IIS.
Error description :
HTTP/1.1 901Content-Length: 46Content-Type: text/html;charset=UTF-8Date: Sat, 11 Jan 2020 08:02:39 GMTServer: Apache-Coyote1.1Error invoking API service Activity timed out
We are facing timeout issue when consuming external REST API.This API will roughly take more than a minutes seconds.However, the API call is timing out in 30 seconds.
We are unable to increase the response timeout beyond the 30 seconds even thoughthe response "timeout in seconds" mentioned is 100 seconds.
We have tried the following approach:
1.Use HTTPRequestHandler Set Timeout to 180 seconds.
2.Set the Timeout in Seconds to 180 seconds. (we also tried to decrease thetimeout to for example 1 second to check if this field is working)
May I know how to increase the timeout beyond 30 seconds, like where n all do I need to check where this value could have been set like on IIS ?
Hi Vivek,
HTTPRequestHandler SetRequestTimeOut() is only relevant for HTTP requests.
The second option you tried "Timeout in Seconds" on rest api, is the correct approach and should work,
Did you try to increase it to a longer time than 180 seconds, maybe 180 was just not enough?
Regards,
Daniel
Hi,I agree with Daniel, and in addition to what he answered if you're consuming a rest service, you can set the timeout per method.
See below image
Hope it helps,Nuno Verdasca
Hi All,
Hope you guys are doing fine.
I am using some external APIs in my web application which are taking time more than 100 seconds.So I just want to know what maximum value we can give for 'Timeout in Seconds' property of REST API Method.
Rashmi Hatwar
Hello Rashmi,
We can give any Maximum value for 'Timeout In Seconds' property. By default it is 100 seconds.
The "Duration" field in integration logs can have higher values than the "Timeout in Seconds" value.
For more information check log data reference.
Regards
Hello, we have the same problem
We already adjusted the timeout to the maximum but the error persists
eSpaceVer: Id=2982, PubId=0, CompiledWith=11.18.1.37828
RequestUrl: https://m.helmbankusa.com:11443/HelmBankCorporate/moduleservices/log?clientTimeInMillis=1697657121608 (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/HelmBankCorporate-19-133421252077516785
FilePath: O:\OutSystems\Platform Server\running\HelmBankCorporate.01928545998\
ClientIp: 10.30.10.12 X-Forwarded-For: 181.129.33.58
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 3524 ('w3wp', Started='10/16/2023 8:51:39 PM', Priv=2484Mb, Virt=2116933Mb)
TID: 83
Thread Name:
.NET: 4.0.30319.42000
Client Runtime Packages: client-runtime-core= 3.27.0;client-runtime-view-framework-react= 3.5.0;client-runtime-widgets= 3.10.0;
Client-Side Log
stack
CommunicationException: Request failed with status 504
at c.onSuccess (https://business.helmbankusa.com/HelmBankCorporate/scripts/OutSystems.js?RnlDcii3Xz75iIHHERIZtA:3:6619)
at XMLHttpRequest. (https://business.helmbankusa.com/HelmBankCorporate/scripts/OutSystems.js?RnlDcii3Xz75iIHHERIZtA:3:2648)
Hope you can help thank you