← back to Dw Pitch Followup
refresh.sh: retry build-lists up to 3x on transient Claris ID/Cognito 'Network error' FATAL (TK-12258)
3828ac0503f33a0a43a77f9e70f119832a93e38f · 2026-09-25 14:09:09 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7LB6rCwpA7ubJTqYzqXEX
Files touched
Diff
commit 3828ac0503f33a0a43a77f9e70f119832a93e38f
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Fri Sep 25 14:09:09 2026 -0700
refresh.sh: retry build-lists up to 3x on transient Claris ID/Cognito 'Network error' FATAL (TK-12258)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D7LB6rCwpA7ubJTqYzqXEX
---
scripts/refresh.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/refresh.sh b/scripts/refresh.sh
index 48929b7..fdb288f 100755
--- a/scripts/refresh.sh
+++ b/scripts/refresh.sh
@@ -15,7 +15,14 @@ until curl -sS --max-time 4 -o /dev/null https://www.apple.com 2>/dev/null; do
[ "$n" -ge 24 ] && { echo "[refresh] network not up after ~120s — proceeding anyway"; break; }
sleep 5
done
-"$NODE" scripts/build-lists.js
+# Retry build-lists: Claris ID (AWS Cognito) auth intermittently FATALs with "Network error"
+# even after the connectivity guard passes (TK-12258, 2026-09-25 11:52 run). Up to 3 tries.
+t=1
+until "$NODE" scripts/build-lists.js; do
+ [ "$t" -ge 3 ] && { echo "[refresh] build-lists failed after $t attempts"; exit 1; }
+ echo "[refresh] build-lists attempt $t failed — retrying in 60s"
+ t=$((t + 1)); sleep 60
+done
# pre-triage hits the running server (owns the follow-up cache); non-fatal if it can't
"$NODE" scripts/pretriage.js || echo "[refresh] pretriage skipped/failed (non-fatal)"
echo "=== refresh done $(date) ==="
← 1989be5 auto-data-snapshot: 2026-09-17T20:05:20 (1 data files) — dat
·
back to Dw Pitch Followup
·
(newest)