From 256be8f16c90a63d6d6a486e219366da24535474 Mon Sep 17 00:00:00 2001 From: Jason I Date: Fri, 27 Sep 2024 09:04:01 -0700 Subject: [PATCH] chore: update comment --- packages/agent/src/agent/http/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/agent/src/agent/http/index.ts b/packages/agent/src/agent/http/index.ts index 91352bb4..c3d34f57 100644 --- a/packages/agent/src/agent/http/index.ts +++ b/packages/agent/src/agent/http/index.ts @@ -564,6 +564,9 @@ export class HttpAgent implements Agent { ); } + // If the error is due to the ingress expiry being misconfigured, + // sync this instance's replica time using the value provided in + // the error response and retry if ((error as ReplicaTimeError).message.includes('ingress_expiry')) { this.log.warn('Agent time out of sync. Updating and retrying...'); this.replicaTime = (error as ReplicaTimeError).replicaTime;