Checks for browser resource errors when accessing websites
npm install
npx playwright install
node main.js "https://<your website>" headless=false timeout=2000
- where
headlesssets the browser context - where
timeoutin milliseconds to wait for page events and redirects
Writes to ./results/<domain>--<contextPath>-<timestamp>.json
{
"url": "https://example.com",
"finalUrl": "https://example.com/",
"scanTime": "2025-04-22T09:22:38.786Z",
"statusCode": "200",
"consoleErrors": [
{
"errorType": "error",
"location": "https://example.com/api/user",
"line": 0,
"message": "Failed to load resource: the server responded with a status of 401 ()",
"timestamp": "2025-04-22T09:22:39.941Z",
"url": "https://example.com/"
}
],
"resourceErrors": [
{
"errorType": "resourceResponseError",
"message": "https://example.com/api/user - Status: 401",
"timestamp": "2025-04-22T09:22:39.941Z",
"statusCode": "401",
"url": "https://example.com/api/user"
}
]
}