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/nsfw.ts:37

            searchParams: queryString.stringify({
                id: novelId,
                viewer_version: '20221031_ai',
            }),
        });

        const virtualConsole = new VirtualConsole().on('error', () => void 0);

        const { window } = new JSDOM(response.data, {
            runScripts: 'dangerously',
            virtualConsole,
        });

        const novelDetail = window.pixiv?.novel as NSFWNovelDetail;

        window.close();

        if (!novelDetail) {
            throw new Error('No novel data found');
        }

        const images = Object.fromEntries(
            Object.entries(novelDetail.images)
                .filter(([, image]) => image?.urls?.original)
                .map(([id, image]) => [id, image.urls.original])
        );

        const parsedContent = await parseNovelContent(novelDetail.text, images, token);

        return {
            id: novelDetail.id,
            title: novelDetail.title,
            description: novelDetail.caption,
            content: parsedContent,

            userId: novelDetail.userId,
            userName: null, // Not provided in NSFW API

View on GitHub (pinned to bed535e087)

Solutions

  1. Verify the novel id exists and is accessible with the configured pixiv account.
  2. For R18 novels, ensure PIXIV_REFRESHTOKEN is set.

When it happens

Trigger: The pixiv API returns no novel data for the requested NSFW novel id.

Common situations: See trigger scenarios.


AI-assisted analysis of DIYgod/RSSHub@bed535e087 (2026-08-12). Data as JSON: /api/errors/530dee69012e07c5. Report an issue: GitHub.