Skip to content

[Bug]: PDF rendering timeout issue #799

@vinsmokejazz

Description

@vinsmokejazz

Describe the bug

PDF download fails with a 30-second timeout error when attempting to render resume to PDF. The Page.goto operation exceeds the timeout while waiting for networkidle, causing the download to fail with HTTP 503.

Failed to download resume (status 503): {"detail":"PDF rendering failed: Page.goto: Timeout 30000ms exceeded.\nCall log:\n - navigating to "http://localhost:3000/print/resumes/[id]?template=swiss-single&...\", waiting until "networkidle"\n"}

To Reproduce

Start both backend (uv run uvicorn app.main:app --reload --port 8000) and frontend (npm run dev)
Create or open an existing resume
Click the "Download PDF" button
See the error: Failed to download resume (status 503) with timeout details

Expected behavior

The resume should download as a PDF file within 10-15 seconds without timing out.

Environment

OS Windows 11
Backend FastAPI + Python 3.13+, Playwright (headless Chromium)
Frontend Next.js 16.2.3 (Turbopack), React 19
Browser N/A (server-side Chromium rendering)
Python version 3.13+
Node version 18+

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions