0
Fixed

UNIFYNow IdB Agent (Rest) timing out

Hayden Gray 5 months ago • updated by Matthew Davis (Engineering Manager) 5 months ago 4

After recently updating to the latest version of UNIFYBroker (5.3.1) and UNIFYNow (4.0.4), I have noticed that some UNIFYNow operations appears to be reporting errors when errors are not being thrown on the corresponding UNIFYBroker job. 

To explain this a little better an example of this is an operation list "IDB- Scheduled - SMS Enrolments - Import All". Each night this operation list is scheduled to run with two steps :

  1. Import Files
  2. Run UNIFY Broker Rest API Operation (Import all)

This operation list runs fora while and then throws an error:

Operation Identity Broker Rest API Operation with id 00ad3527-87cb-4826-9ecc-a134f5007fd5 failed in the operation list IDB - Scheduled - SMS Enrolments - Import All with id d7b24af6-c394-4d8d-9336-9e9339be5b94 for the following reason. This is retry number 0: Unify.Product.EventBroker.RestAPIAgentSendRequestFailedException: The sending of the request failed. See the inner exception for more information. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Unify.Product.EventBroker.RestAPIAgent.<SendRequestAsync>d__18.MoveNext()
--- End of inner exception stack trace ---
at Unify.Product.EventBroker.RestAPIPlugIn.Execute()
at Unify.EventBroker.PlugIn.Audit.OperationAuditingDecorator.Execute()
at Unify.Product.EventBroker.OperationListExecutorBase.RunNextOperations(IEnumerator`1 operationEnumerator)

Both operations in the list continue to run successfully, however it just appears to time out.

All errors of this type appear to be occurring on operation lists that take more than an hour to run. Please let me know if you need any further information and please also find attached the extensibility folder for UNIFYNow.

Thanks,

Hayden

Answer

Answer
Under review

Hi Hayden, check your timeout setting on the rest api agent in Now. Make sure it greater than the length of time the longest connector import takes to complete.

Answer
Under review

Hi Hayden, check your timeout setting on the rest api agent in Now. Make sure it greater than the length of time the longest connector import takes to complete.

Hi Beau,

The request timeout was set to 1hr which, lines up with run duration on the operation list mentioned above. The operation is scheduled to run again tonight, so I will comment tomorrow with the result, but it looks like it will do the trick.

Thanks

Checking this morning, that has fixed the issue.

Thanks Beau