DIYgod/RSSHub · error · Error

No pages found in the current People’s Daily edition

Error message

No pages found in the current People’s Daily edition

What it means

Error "No pages found in the current People’s Daily edition" thrown in DIYgod/RSSHub.

Source

Thrown at lib/routes/people/paper.ts:52

    const html = await ofetch<string>(indexUrl);
    const $ = load(html);
    const pages = $('#list li a[href]')
        .toArray()
        .map((element) => {
            const href = $(element).attr('href') ?? '';
            const id = href.match(/node_(\d+)\.html/)?.[1];
            return id
                ? {
                      id,
                      title: normalizeText($(element).text()),
                      url: new URL(href, indexUrl).href,
                  }
                : undefined;
        })
        .filter((page): page is PaperPage => Boolean(page));

    if (pages.length === 0) {
        throw new Error('No pages found in the current People’s Daily edition');
    }
    return pages;
};

const getArticles = (page: PaperPage, pubDate: Date): Promise<PaperArticle[]> =>
    cache.tryGet(page.url, async () => {
        const html = await ofetch<string>(page.url);
        const $ = load(html);
        return $('.news-list a[href]')
            .toArray()
            .map((element) => ({
                title: normalizeText($(element).text()),
                link: new URL($(element).attr('href') ?? '', page.url).href,
                category: [page.title],
                pubDate,
            }));
    });

View on GitHub (pinned to bed535e087)

Solutions

  1. Retry later; the edition index page may have failed to load.
  2. If persistent, the page structure changed; open an issue.

When it happens

Trigger: No page links matching node_<id>.html were found in the current People’s Daily edition index page.

Common situations: See trigger scenarios.


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