Skip to content

Tighten YouTube extraction timeouts and preserve failure diagnostics - #100

Closed
devhims wants to merge 1 commit into
mainfrom
fix/transcript-latency
Closed

devhims wants to merge 1 commit into
mainfrom
fix/transcript-latency

Conversation

@devhims

@devhims devhims commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Problem / Motivation

Transcript retrieval can spend too long waiting on stalled requests. Existing diagnostics also hide whether a failure occurred during connection setup, TLS, response headers, or body transfer. Live testing exposed an additional library deadline that canceled individual requests after ten seconds, even though the surrounding proxy attempt allowed twenty-five seconds.

What changed

Direct attempts now allow five seconds and proxy attempts twenty seconds. Proxy connection setup allows five seconds, TLS eight, response headers twelve, and body inactivity eight. The library request deadline is explicitly aligned to twenty seconds, so a valid caption response taking twelve seconds can still succeed.

Direct-first routing, proxy retry count, and the existing extraction architecture are retained. Diagnostics capture allowlisted timeout codes before error wrapping, identify request and operation deadlines, and preserve all five attempts through the cache coordinator. Generated types, API documentation, and operational guidance are updated.

Tests

Platform type checking, documentation checks, and 818 unit tests passed, with seven existing skips. All eight final deployed transcript checks passed. One direct request hit the five-second deadline and recovered through the proxy. Earlier live French translation checks returned HTTP 429 before any timeout; live translation remains unverified in this pass. Detailed observations are in the verification document.

Deployment

No production deployment was performed. The temporary Worker was deleted. Merging and deploying applies the settings without another toggle. Monitor latency and failure rate after rollout.

@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
video2ctx-web Ready Ready Preview Sep 27, 2026 8:21am UTC

This branch was successfully deployed

1 active deployment
Preview — e854bc86 Deployed Sep 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant