{"record":{"id":"2d50ba280f362562","repo":"n8n-io/n8n","slug":"html-attachment-filename-contains-no-extracta","errorCode":null,"errorMessage":"HTML \"${attachment.fileName}\" contains no extractable text.","messagePattern":"HTML \"(.+?)\" contains no extractable text\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/@n8n/instance-ai/src/parsers/html-parser.ts","lineNumber":65,"sourceCode":"\tconst TurndownService = TurndownModule.default;\n\n\tconst dom = linkedom.parseHTML(html) as { document: StrippableDocument };\n\tconst htmlDocument: StrippableDocument = dom.document;\n\n\tconst title = htmlDocument.querySelector('title')?.textContent?.trim() ?? undefined;\n\n\tfor (const tag of STRIPPABLE_TAGS) {\n\t\tfor (const el of Array.from(htmlDocument.querySelectorAll(tag))) {\n\t\t\tel.remove();\n\t\t}\n\t}\n\n\tconst sourceHtml = htmlDocument.body?.innerHTML ?? '';\n\tconst turndown = new TurndownService({ headingStyle: 'atx', codeBlockStyle: 'fenced' });\n\tconst markdown = turndown.turndown(sourceHtml).trim();\n\n\tif (!markdown) {\n\t\tthrow new Error(`HTML \"${attachment.fileName}\" contains no extractable text.`);\n\t}\n\n\tif (markdown.length > MAX_RESULT_CHARS) {\n\t\treturn { text: markdown.slice(0, MAX_RESULT_CHARS), title, truncated: true };\n\t}\n\n\treturn { text: markdown, title, truncated: false };\n}\n","sourceCodeStart":47,"sourceCodeEnd":74,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/instance-ai/src/parsers/html-parser.ts#L47-L74","documentation":"Error \"HTML \"${attachment.fileName}\" contains no extractable text.\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/instance-ai/src/parsers/html-parser.ts:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}