fix
patch
gateway
feat/phase-2g-bundle
fix(gateway): replace setImmediate with bounded inline await for hints; add Netlify 26s timeout
setImmediate is a macrotask — Netlify/Lambda containers freeze after the async serverless handler resolves, so hints callbacks never fired reliably on hosted. Replace with an inline Promise.race (6 s budget) that runs before res.send, ensuring the hints job completes within the live Lambda window.
Add timeout = 26 to [functions] in netlify.toml so the Enrich endpoint (ICP canister round-trips + OpenAI) has sufficient headroom and no longer hits the 10 s hard-cut that caused "Failed to fetch" (Netlify's timeout HTML page lacks CORS headers, which the browser surfaces as a fetch error).
server.mjs: await the now-async maybeScheduleHostedProposalReviewHints before res.send so hints are written before the response is flushed.
sha256:e9bf858339fe33d2fe1c2a075aca30e94ad2fd250eb9e4a6c9cfe533a8a6b7b4
sha
sha256:78350d957c9718a829c8aec57c261834afd7f2157326eb3c0effe4bacd4895dc
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:e9bf858339fe33d2fe1c2a075aca30e94ad2fd250eb9e4a6c9cfe533a8a6b7b4 --body "your comment"
No comments yet. Be the first to start the discussion.