Folks,
I have a BPM process that when started, it makes a series of calls to a 3rd-party REST API to gather data and store it locally in an OutSystems DB table.
The REST call works great on a 1-at-a-time basis ... so, in my loop, I even added a 2 seconds "Sleep".
BUT, I keep getting a random "Connection Close" error.
HELP: I can't tell if the OutSystems server is closing the connection - OR - if the 3rd-party REST API that I am calling is in fact closing the connection.
How can I tell why and where the connection is being closed???
See error message below - thanks!
-Bruce
Id: | e333eb15-e49f-46ee-884d-4bb666c31009 |
Time of Log: | 2018-10-18 14:53:47 |
eSpace: | H_APIs_Logic |
Tenant: | Users |
User: | |
Session Id: | |
Server: | E3PWG-DV4T2P |
Module: | Scheduler |
Message: | Scheduler Service: Error executing request http://127.0.0.1/H_APIs_Logic/ for Activity RunReplication. Request duration = 29 secs. |
Environment Information | eSpaceVer: 0 (Id=0, PubId=0, CompiledWith=10.0.828.0) RequestUrl: (Method: ) AppDomain: Scheduler.exe Path: C:\...\PS\ Locale: DateFormat: yyyy-M-d PID: 792 ('Scheduler', Started='10/4/2018 4:36:41 PM', Priv=38Mb, Virt=636Mb) TID: 16 Thread Name: Activity Processor #1 .NET\: 4.0.30319.42000 |
Stack: | The underlying connection was closed: An unexpected error occurred on a receive. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at OutSystems.HubEdition.RuntimePlatform.Processes.ActivityHandler.ExecuteActivityActionv2(String ssKey, Int32 activityId, Int32 processId, Int32 tenantId, ActivityStatus forInitialStatus, DateTime previousNextRun) at OutSystems.HubEdition.Scheduler.ActivityJob.Execute() at OutSystems.HubEdition.Scheduler.SchedulerProducerConsumer`1.<>c__DisplayClass25_0.<Execute>b__0() |