← back to Doing Viewer

5x/sweep-1.md

17 lines

# /5x sweep 1 — doing-viewer (http://127.0.0.1:9790)

## Verify (six-way)
- M1 HTTP contract: PASS (200 text/html)
- M2 headless render: PASS (417KB screenshot, no blank)
- M3 automation E2E: **FAIL** — 1 JS error
- B4 Google Chrome: PASS
- B5 Safari / B6 Firefox: SKIP (engines not installed, --no-open)

## Caught
- 1 JS error, reproduced 3/3 with real Chrome: `Failed to load resource: the server responded with a status of 404 (Not Found)`.
- Root cause: `/favicon.ico` → 404. The browser implicitly requests it; server.js had no favicon route (fell to the default 404 at line 284). The runner's `favicon`-text filter misses it because Chrome's console message for a failed subresource is generic ("Failed to load resource... 404") with no URL.

## Fix
- server.js: added `if (req.url === '/favicon.ico') { res.writeHead(204); res.end(); return; }` before the default 404. Returns 204 No Content for any client.
- Restarted pm2 `doing-viewer`. Verified: /favicon.ico → 204, / → 200.