{"record":{"id":"d83e979ec79d7b81","repo":"DIYgod/RSSHub","slug":"failed-to-fetch-messages-from-the-people-s-daily-m","errorCode":null,"errorMessage":"Failed to fetch messages from the People’s Daily message board","messagePattern":"Failed to fetch messages from the People’s Daily message board","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/people/liuyan.ts","lineNumber":94,"sourceCode":"\n    const limit = Number(ctx.req.query('limit') ?? 30);\n    const forumUrl = `${rootUrl}/threads/list?fid=${fid}`;\n    const currentUrl = `${forumUrl}#state=${state}`;\n    const apiResponse = await ofetch<ApiResponse>(apiUrl, {\n        method: 'POST',\n        responseType: 'json',\n        headers: {\n            Referer: forumUrl,\n        },\n        body: new URLSearchParams({\n            fid,\n            state,\n            lastItem: '0',\n        }),\n    });\n\n    if (apiResponse.result !== 'success' || !apiResponse.success || !Array.isArray(apiResponse.responseData)) {\n        throw new Error('Failed to fetch messages from the People’s Daily message board');\n    }\n\n    const items = apiResponse.responseData.slice(0, limit).map((message) => ({\n        title: message.subject,\n        author: message.nickName,\n        link: `${rootUrl}/threads/content?tid=${message.tid}`,\n        pubDate: parseDate(message.dateline * 1000),\n        description: getDescription(message),\n        category: [message.forumName, message.typeName, message.domainName, message.stateInfo].filter((category): category is string => Boolean(category)),\n        ...(message.answerDateline && { updated: parseDate(message.answerDateline * 1000) }),\n    }));\n\n    return {\n        title: `${apiResponse.responseData[0]?.forumName ?? `留言板 ${fid}`} - 领导留言板 - 人民网`,\n        link: currentUrl,\n        item: items,\n    };\n}","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/people/liuyan.ts#L76-L112","documentation":"Error \"Failed to fetch messages from the People’s Daily message board\" thrown in DIYgod/RSSHub.","triggerScenarios":"The People’s Daily message board API returns a non-success result or a malformed response for the given fid/state.","commonSituations":"See trigger scenarios.","solutions":["Verify the fid parameter matches a valid People’s Daily message board forum id.","Check that the state parameter is one of the supported values.","The message board API may be down or changed; retry later or open an issue."],"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"}