Fix Puppeteer crash handler error in Docker

Add --disable-crash-reporter flag to Puppeteer launch args to fix
"chrome_crashpad_handler: --database is required" error that occurs
when running in Docker containers with system Chromium.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-02-02 19:32:27 -05:00
parent 2549118555
commit 33b944588d

View file

@ -256,6 +256,7 @@ async function scrapeWithBrowser(url: string): Promise<string> {
'--disable-dev-shm-usage', '--disable-dev-shm-usage',
'--disable-blink-features=AutomationControlled', '--disable-blink-features=AutomationControlled',
'--disable-infobars', '--disable-infobars',
'--disable-crash-reporter',
'--window-size=1920,1080', '--window-size=1920,1080',
'--start-maximized', '--start-maximized',
], ],