{"record":{"id":"e09c02e39d655193","repo":"DIYgod/RSSHub","slug":"unable-to-determine-the-current-people-s-daily-edi","errorCode":null,"errorMessage":"Unable to determine the current People’s Daily edition date","messagePattern":"Unable to determine the current People’s Daily edition date","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"lib/routes/people/paper.ts","lineNumber":28,"sourceCode":"const indexUrl = `${rootUrl}layout/index.html`;\nconst defaultLimit = 30;\n\ntype PaperPage = {\n    id: string;\n    title: string;\n    url: string;\n};\n\ntype PaperArticle = DataItem & {\n    link: string;\n};\n\nconst normalizeText = (text: string) => text.replaceAll(/\\s+/g, ' ').trim();\n\nconst getEditionDate = (url: string) => {\n    const match = url.match(/\\/(\\d{4})(\\d{2})\\/(\\d{2})\\//);\n    if (!match) {\n        throw new Error('Unable to determine the current People’s Daily edition date');\n    }\n    return `${match[1]}年${match[2]}月${match[3]}日`;\n};\n\nconst getPages = async () => {\n    const html = await ofetch<string>(indexUrl);\n    const $ = load(html);\n    const pages = $('#list li a[href]')\n        .toArray()\n        .map((element) => {\n            const href = $(element).attr('href') ?? '';\n            const id = href.match(/node_(\\d+)\\.html/)?.[1];\n            return id\n                ? {\n                      id,\n                      title: normalizeText($(element).text()),\n                      url: new URL(href, indexUrl).href,\n                  }","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/people/paper.ts#L10-L46","documentation":"Error \"Unable to determine the current People’s Daily edition date\" thrown in DIYgod/RSSHub.","triggerScenarios":"The edition page URL does not match the expected /YYYYMM/DD/ date pattern, so the edition date cannot be parsed.","commonSituations":"See trigger scenarios.","solutions":["The People’s Daily site layout may have changed; open an issue so the edition URL parsing can be updated.","Retry later in case of a transient fetch problem."],"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"}