Issue:-
HTTP Client pipeline throws following error after running for few hours:-
HTTP_40 - Error sending resource. HTTP-Status: 401 Reason: SubCode=40106: Access Control Serivce token supplied for this operation has expired. Retry the operation.
Resolution:-
The Azure AD tokens expire at 60 minutes. These parameters were set to 56 minutes. This change caused the SDC to terminate the connection under the 60 minutes where the token is valid and forced it to renew the token.
After increasing Connect Timeout and Read Timeout in HTTP Client to => 60 minutes the issue was resolved.