{"record":{"id":"b57737f81582a855","repo":"DIYgod/RSSHub","slug":"pianyuan-is-disabled-due-to-the-lack-of-a-href-h","errorCode":null,"errorMessage":"pianyuan is disabled due to the lack of <a href=\"https://docs.rsshub.app/deploy/config#route-specific-configurations\">relevant config</a>","messagePattern":"pianyuan is disabled due to the lack of <a href=\"https://docs\\.rsshub\\.app/deploy/config#route-specific-configurations\">relevant config</a>","errorType":"exception","errorClass":"ConfigNotFoundError","httpStatus":null,"severity":"error","filePath":"lib/routes/pianyuan/utils.ts","lineNumber":53,"sourceCode":"                    enclosure_url: magnet,\n                    enclosure_type: 'application/x-bittorrent',\n                    enclosure_length: length,\n                };\n            });\n            return single;\n        })\n    );\n\n    return items;\n};\n\nasync function getCookie(cache) {\n    const security_session_verify = await cache.get(security_key);\n    const PHPSESSID = await cache.get(PHPSESSID_key);\n    let py_loginauth = await cache.get(loginauth_key);\n    if (!py_loginauth) {\n        if (!config.pianyuan || !config.pianyuan.cookie) {\n            throw new ConfigNotFoundError('pianyuan is disabled due to the lack of <a href=\"https://docs.rsshub.app/deploy/config#route-specific-configurations\">relevant config</a>');\n        }\n        py_loginauth = config.pianyuan.cookie;\n    }\n    return `${py_loginauth};${security_session_verify};${PHPSESSID};`;\n}\n\nasync function request(link, cache) {\n    const cookie = await getCookie(cache);\n    const response = await got({\n        method: 'get',\n        url: link,\n        headers: {\n            Cookie: cookie,\n        },\n    });\n    // set cookie\n    const set_cookie = response.headers['set-cookie'];\n    if (set_cookie) {","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/pianyuan/utils.ts#L35-L71","documentation":"Error \"pianyuan is disabled due to the lack of <a href=\"https://docs.rsshub.app/deploy/config#route-specific-configurations\">relevant config</a>\" thrown in DIYgod/RSSHub.","triggerScenarios":"The route is invoked without the required pianyuan configuration (cookie) being set.","commonSituations":"See trigger scenarios.","solutions":["Set the required pianyuan cookie/config as described in the route-specific configuration documentation."],"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"}