DIYgod/RSSHub · error · Error

Failed to fetch messages from the People’s Daily message boa

Error message

Failed to fetch messages from the People’s Daily message board

What it means

Error "Failed to fetch messages from the People’s Daily message board" thrown in DIYgod/RSSHub.

Source

Thrown at lib/routes/people/liuyan.ts:94

    const limit = Number(ctx.req.query('limit') ?? 30);
    const forumUrl = `${rootUrl}/threads/list?fid=${fid}`;
    const currentUrl = `${forumUrl}#state=${state}`;
    const apiResponse = await ofetch<ApiResponse>(apiUrl, {
        method: 'POST',
        responseType: 'json',
        headers: {
            Referer: forumUrl,
        },
        body: new URLSearchParams({
            fid,
            state,
            lastItem: '0',
        }),
    });

    if (apiResponse.result !== 'success' || !apiResponse.success || !Array.isArray(apiResponse.responseData)) {
        throw new Error('Failed to fetch messages from the People’s Daily message board');
    }

    const items = apiResponse.responseData.slice(0, limit).map((message) => ({
        title: message.subject,
        author: message.nickName,
        link: `${rootUrl}/threads/content?tid=${message.tid}`,
        pubDate: parseDate(message.dateline * 1000),
        description: getDescription(message),
        category: [message.forumName, message.typeName, message.domainName, message.stateInfo].filter((category): category is string => Boolean(category)),
        ...(message.answerDateline && { updated: parseDate(message.answerDateline * 1000) }),
    }));

    return {
        title: `${apiResponse.responseData[0]?.forumName ?? `留言板 ${fid}`} - 领导留言板 - 人民网`,
        link: currentUrl,
        item: items,
    };
}

View on GitHub (pinned to bed535e087)

Solutions

  1. Verify the fid parameter matches a valid People’s Daily message board forum id.
  2. Check that the state parameter is one of the supported values.
  3. The message board API may be down or changed; retry later or open an issue.

When it happens

Trigger: The People’s Daily message board API returns a non-success result or a malformed response for the given fid/state.

Common situations: See trigger scenarios.


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