{"record":{"id":"746a988ec37ca41b","repo":"DIYgod/RSSHub","slug":"no-novel-data-found-746a98","errorCode":null,"errorMessage":"No novel data found","messagePattern":"No novel data found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/pixiv/novel-api/content/sfw.ts","lineNumber":23,"sourceCode":"import pixivUtils from '../../utils';\nimport type { NovelContent, SFWNovelDetail } from './types';\nimport { parseNovelContent } from './utils';\n\nconst baseUrl = 'https://www.pixiv.net';\n\nexport async function getSFWNovelContent(novelId: string): Promise<NovelContent> {\n    const url = `${baseUrl}/ajax/novel/${novelId}`;\n    return (await cache.tryGet(url, async () => {\n        const response = await got(url, {\n            headers: {\n                referer: `${baseUrl}/novel/show.php?id=${novelId}`,\n            },\n        });\n\n        const novelDetail = response.data as SFWNovelDetail;\n\n        if (!novelDetail) {\n            throw new Error('No novel data found');\n        }\n\n        const body = novelDetail.body;\n        const images: Record<string, string> = {};\n\n        if (novelDetail.body.textEmbeddedImages) {\n            for (const [id, image] of Object.entries(novelDetail.body.textEmbeddedImages)) {\n                images[id] = pixivUtils.getProxiedImageUrl(image.urls.original);\n            }\n        }\n\n        const parsedContent = await parseNovelContent(novelDetail.body.content, images);\n\n        return {\n            id: body.id,\n            title: body.title,\n            description: body.description,\n            content: parsedContent,","sourceCodeStart":5,"sourceCodeEnd":41,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/pixiv/novel-api/content/sfw.ts#L5-L41","documentation":"Error \"No novel data found\" thrown in DIYgod/RSSHub.","triggerScenarios":"The pixiv API returns no novel data for the requested SFW novel id.","commonSituations":"See trigger scenarios.","solutions":["Verify the novel id exists and is publicly accessible."],"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"}