Fix FCC timeout: add quick=1 param and increase timeout to 60s

FCC APIs (CORES, ServiceNow) are responding in 28-45 seconds.
The 30s frontend timeout was being hit ~50% of the time. Added
quick=1 to skip slow Playwright corp checks and increased timeout
to 60s as safety margin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-03 01:51:55 -05:00
parent d4af416b8e
commit aef3cc7bbe

View file

@ -387,9 +387,9 @@ import Base from "../../layouts/Base.astro";
currentController = controller;
try {
const timeout = setTimeout(() => controller.abort(), 30000);
const timeout = setTimeout(() => controller.abort(), 60000);
const res = await fetch(`${API}/api/v1/fcc/lookup?frn=${frn}`, { signal: controller.signal });
const res = await fetch(`${API}/api/v1/fcc/lookup?frn=${frn}&quick=1`, { signal: controller.signal });
clearTimeout(timeout);
// Ignore if a newer request superseded this one