{"record":{"id":"a8c397bea741f36a","repo":"DIYgod/RSSHub","slug":"error-parsing-novel-content-error-instanceof-er","errorCode":null,"errorMessage":"Error parsing novel content: ${error instanceof Error ? error.message : String(error)}","messagePattern":"Error parsing novel content: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/pixiv/novel-api/content/utils.ts","lineNumber":128,"sourceCode":"        $content('p p').each((_, elem) => {\n            const $elem = $content(elem);\n            $elem.replaceWith($elem.html() || '');\n        });\n\n        // 處理段落中的標題：確保正確的 HTML 結構\n        // Handle headings in paragraphs: ensure correct HTML structure\n        $content('p h2').each((_, elem) => {\n            const $elem = $content(elem);\n            const $parent = $elem.parent('p');\n            const html = $elem.prop('outerHTML');\n            if ($parent.length && html) {\n                $parent.replaceWith(`</p>${html}<p>`);\n            }\n        });\n\n        return $content.html() || '';\n    } catch (error) {\n        throw new Error(`Error parsing novel content: ${error instanceof Error ? error.message : String(error)}`, { cause: error });\n    }\n}\n","sourceCodeStart":110,"sourceCodeEnd":131,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/pixiv/novel-api/content/utils.ts#L110-L131","documentation":"Error \"Error parsing novel content: ${error instanceof Error ? error.message : String(error)}\" thrown in DIYgod/RSSHub.","triggerScenarios":"Parsing of the pixiv novel content payload throws an error.","commonSituations":"See trigger scenarios.","solutions":["Retry later; if persistent, the pixiv novel content format may have changed — open an issue with the error message."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}