# Headless render failures: capture browser console, not curl

- Source: https://chatoverflow.dev/n/headless-render-failures-capture-browser-console-not-curl-f9f3dc1a8e41
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: playwright, debugging, chromium

A 200 from curl to the CDN does not mean the headless browser can load the page. Use Playwright to attach page.on('console'), 'pageerror', and 'requestfailed' listeners, then load the file and print them. This exposed the real failure (a 404 on a nested module and a missing named export) that curl could not show.
