Question

System.Net.WebException: The operation has timed out.

Getting this error while calling the web service from Process . Has changed the maximum execution time also but  still getting. Any suggestions?

System.Net.WebException: The operation has timed out.
  at Terrasoft.Services.Runtime.ServiceClient.<GetResponseData>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Terrasoft.Services.Runtime.ServiceClient.Execute(IServiceClientRequest request, TimeSpan timeout, CancellationToken cancellationToken)
  at Terrasoft.Services.WebServiceUserTaskImplementation.Execute(ProcessWebService userTask, ProcessExecutingContext context)
  at Terrasoft.Core.Process.ProcessFlowElement.CallInternalExecute(ProcessExecutingContext context)
  at Terrasoft.Core.Process.ProcessActivity.RunInCultureScope[T](Func`1 action)
  at Terrasoft.Core.Process.ProcessActivity.ExecuteElement(ProcessExecutingContext context)
  at Terrasoft.Core.Process.ProcessActivity.ExecuteItem(ProcessExecutingContext context)
  at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
Like 0

Like

4 comments

.

Vladimir Sokolov,

???

 

Hello!

The error indicates that we couldn't receive a response due to the timeout from the host to which the request was sent. And it's not an issue with the application because, in that case, we would get something like "Thread was being aborted" (if it's a problem with the Web layer - compilation, restart, thread locks in the Entity layer) or a message about a lock (if it's a database issue) or some specific error. But a timeout exclusively indicates that within N (as you configured) seconds, the host to which we sent the request couldn't respond. Hence, the web service element timed out. Most likely, it's because the host to which we sent the request temporarily became unavailable.

Thank you!

Andrii Kurta,

 
Thankyou for your reply, But when i user postman it is working fine and also when manually click on the webservice "send request" it is working fine. Issue only arises in BP .

 

Show all comments