{"record":{"id":"bced1b5239faa997","repo":"affaan-m/ECC","slug":"not-found","errorCode":null,"errorMessage":"Not found","messagePattern":"Not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"skills/frontend-slides/scripts/export-pdf.sh","lineNumber":179,"sourceCode":"  '.svg': 'image/svg+xml',\n  '.webp': 'image/webp',\n  '.woff': 'font/woff',\n  '.woff2': 'font/woff2',\n  '.ttf': 'font/ttf',\n  '.eot': 'application/vnd.ms-fontobject',\n};\n\nconst server = createServer((req, res) => {\n  // Decode URL-encoded characters (e.g., %20 -> space) so filenames with spaces resolve correctly\n  const decodedUrl = decodeURIComponent(req.url);\n  let filePath = join(SERVE_DIR, decodedUrl === '/' ? HTML_FILE : decodedUrl);\n  try {\n    const content = readFileSync(filePath);\n    const ext = extname(filePath).toLowerCase();\n    res.writeHead(200, { 'Content-Type': MIME_TYPES[ext] || 'application/octet-stream' });\n    res.end(content);\n  } catch {\n    res.writeHead(404);\n    res.end('Not found');\n  }\n});\n\n// Find a free port\nconst port = await new Promise((resolve) => {\n  server.listen(0, () => resolve(server.address().port));\n});\n\nconsole.log(`  Local server on port ${port}`);\n\n// --- Screenshot each slide ---\n\nconst browser = await chromium.launch();\nconst page = await browser.newPage({\n  viewport: { width: VP_WIDTH, height: VP_HEIGHT },\n});\n","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/skills/frontend-slides/scripts/export-pdf.sh#L161-L197","documentation":"The export-pdf static asset server fell through to its not-found response: the requested path (after URL decoding and joining with SERVE_DIR) had no readable file — typically a missing image/font referenced by the slides.","triggerScenarios":"Triggered when export-pdf.sh rejects the current invocation: Not found","commonSituations":"Occurs while running skills/frontend-slides/scripts/export-pdf.sh with invalid arguments, missing flags, or a failing external dependency; the guard at skills/frontend-slides/scripts/export-pdf.sh:179 aborts the command with this message.","solutions":["Verify the referenced path, id, or resource exists and is spelled correctly, then retry."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06c5e118c4d3e6c3b7f9445f973a2194c82de193","analyzedAt":"2026-08-18T11:27:13.915Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}