DIYgod/RSSHub · error · Error
No novel data found
Error message
No novel data found
What it means
Error "No novel data found" thrown in DIYgod/RSSHub.
Source
Thrown at lib/routes/pixiv/novel-api/content/sfw.ts:23
import pixivUtils from '../../utils';
import type { NovelContent, SFWNovelDetail } from './types';
import { parseNovelContent } from './utils';
const baseUrl = 'https://www.pixiv.net';
export async function getSFWNovelContent(novelId: string): Promise<NovelContent> {
const url = `${baseUrl}/ajax/novel/${novelId}`;
return (await cache.tryGet(url, async () => {
const response = await got(url, {
headers: {
referer: `${baseUrl}/novel/show.php?id=${novelId}`,
},
});
const novelDetail = response.data as SFWNovelDetail;
if (!novelDetail) {
throw new Error('No novel data found');
}
const body = novelDetail.body;
const images: Record<string, string> = {};
if (novelDetail.body.textEmbeddedImages) {
for (const [id, image] of Object.entries(novelDetail.body.textEmbeddedImages)) {
images[id] = pixivUtils.getProxiedImageUrl(image.urls.original);
}
}
const parsedContent = await parseNovelContent(novelDetail.body.content, images);
return {
id: body.id,
title: body.title,
description: body.description,
content: parsedContent,View on GitHub (pinned to bed535e087)
Solutions
- Verify the novel id exists and is publicly accessible.
When it happens
Trigger: The pixiv API returns no novel data for the requested SFW novel id.
Common situations: See trigger scenarios.
AI-assisted analysis of DIYgod/RSSHub@bed535e087 (2026-08-12).
Data as JSON: /api/errors/746a988ec37ca41b.
Report an issue: GitHub.