hotfix(pcat): widen JWT capture for slow residential IPs #129

Merged
root merged 1 commits from hotfix-pcat-capture into main 2026-06-11 16:59:37 +03:00
Owner

domcontentloaded + 25s timeout + 12s poll. New Floxy IPs fire token at ~11.8s, past the old 10s/networkidle. Restores pcat warm-pool capture.

domcontentloaded + 25s timeout + 12s poll. New Floxy IPs fire token at ~11.8s, past the old 10s/networkidle. Restores pcat warm-pool capture.
root added 1 commit 2026-06-11 16:59:35 +03:00
fix(pcat): widen JWT capture for slow residential IPs (domcontentloaded + 12s poll)
Some checks failed
QA Gate (P0/P1) / Test affected app (pull_request) Has been cancelled
75d5b11475
After the Floxy account rotation, the new residential exit IPs are slower:
measured DOM-ready ~7s and the widget's /v3/api/proxy token call firing ~11.8s —
past the 10s PAGE_TIMEOUT + networkidle, so every capture timed out ("No token
after 12s") and the warm pool stayed empty (pcat dead despite valid creds).

- waitUntil networkidle → domcontentloaded (reliable ~7s; networkidle often never
  settles on JS catalog sites through a slow proxy → goto times out pre-token).
- PAGE_TIMEOUT 10s → 25s (env PCAT_PAGE_TIMEOUT_MS); token fired at ~11.8s.
- CAPTURE_POLL_AFTER_OK 5s → 12s (env PCAT_CAPTURE_POLL_OK) to cover the ~5s
  gap between DOM-ready and the token call. Capture is background (warm pool,
  cold-pool fast-fail never blocks users), so the longer cap is free insurance.

Verified via standalone Playwright probe through the new Floxy: token captured at
11842ms (DOM 7023ms). typecheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
root merged commit ffcd417939 into main 2026-06-11 16:59:37 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/sase.tr#129