laravel-dompdf icon indicating copy to clipboard operation
laravel-dompdf copied to clipboard

Stuck Generating PDF: Missing File Causes Timeout

Open teguhpanjaitan opened this issue 7 months ago • 1 comments

Description When attempting to generate a PDF using the current implementation, the process gets stuck indefinitely. After investigation, it appears that the underlying cause is a missing file required by the PDF generation engine (e.g., HTML template or asset). Instead of failing fast or throwing a clear error, the system enters a timeout state without completing or returning feedback.

To Reproduce

  1. Trigger PDF generation
  2. Ensure the HTML/template file or required asset is missing or unavailable.
  3. Observe that the process takes very long time and does not return a response or error (it cause PHP timeout) .

Expected behavior PDF generation should fail fast with a clear error message (e.g., FileNotFoundException).

teguhpanjaitan avatar Apr 11 '25 01:04 teguhpanjaitan