← back to Designer Wallcoverings
Route room generator GraphQL scan through timeout-guarded fetchRetry (close last bare-fetch hang hole)
90af3941ec9797f6e347ad6b1e7be3887e67c6f4 · 2026-06-23 11:41:51 -0700 · Steve Abrams
Files touched
M shopify/scripts/tres-tintas-room-settings.js
Diff
commit 90af3941ec9797f6e347ad6b1e7be3887e67c6f4
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jun 23 11:41:51 2026 -0700
Route room generator GraphQL scan through timeout-guarded fetchRetry (close last bare-fetch hang hole)
---
shopify/scripts/tres-tintas-room-settings.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/shopify/scripts/tres-tintas-room-settings.js b/shopify/scripts/tres-tintas-room-settings.js
index f65889ee..39b12c99 100644
--- a/shopify/scripts/tres-tintas-room-settings.js
+++ b/shopify/scripts/tres-tintas-room-settings.js
@@ -66,7 +66,9 @@ async function fetchRetry(url, opts, tries = 3, timeoutMs = 60000) {
throw e;
}
async function gql(query, variables) {
- const r = await fetch(`https://${STORE}/admin/api/${API}/graphql.json`, { method: 'POST', headers: H, body: JSON.stringify({ query, variables }) });
+ // Route through fetchRetry so the paginated scan can't wedge on a half-open
+ // socket (the bare-fetch hole that hung the 2026-06-23 relaunch with 0 output).
+ const r = await fetchRetry(`https://${STORE}/admin/api/${API}/graphql.json`, { method: 'POST', headers: H, body: JSON.stringify({ query, variables }) });
const j = await r.json(); if (j.errors) throw new Error(JSON.stringify(j.errors)); return j.data;
}
← 6638fe05 Harden Tres Tintas spec recrawl: per-request fetch timeout (
·
back to Designer Wallcoverings
·
auto-save: 2026-06-23T11:51:26 (5 files) — shopify/scripts/c 7467dd91 →