{"record":{"id":"44eb07df96876eee","repo":"DIYgod/RSSHub","slug":"bad-parameter-see-a-href-https-docs-rsshub-ap","errorCode":null,"errorMessage":"Bad parameter. See <a href=\"https://docs.rsshub.app/routes/game#wang-yi-da-shen\">https://docs.rsshub.app/routes/game#wang-yi-da-shen</a>","messagePattern":"Bad parameter\\. See <a href=\"https://docs\\.rsshub\\.app/routes/game#wang-yi-da-shen\">https://docs\\.rsshub\\.app/routes/game#wang-yi-da-shen</a>","errorType":"validation","errorClass":"InvalidParameterError","httpStatus":503,"severity":"error","filePath":"lib/routes/163/news/special.ts","lineNumber":49,"sourceCode":"    features: {\n        requireConfig: false,\n        requirePuppeteer: false,\n        antiCrawler: false,\n        supportBT: false,\n        supportPodcast: false,\n        supportScihub: false,\n    },\n    name: '专栏',\n    maintainers: ['nczitzk'],\n    handler,\n    description: `| 轻松一刻 | 槽值 | 人间 | 大国小民 | 三三有梗 | 数读 | 看客 | 下划线 | 谈心社 | 哒哒 | 胖编怪聊 | 曲一刀 | 今日之声 | 浪潮 | 沸点 |\n| -------- | ---- | ---- | -------- | -------- | ---- | ---- | ------ | ------ | ---- | -------- | ------ | -------- | ---- | ---- |\n| 1        | 2    | 3    | 4        | 5        | 6    | 7    | 8      | 9      | 10   | 11       | 12     | 13       | 14   | 15   |`,\n};\n\nasync function handler(ctx) {\n    if (!ctx.req.param('type')) {\n        throw new InvalidParameterError('Bad parameter. See <a href=\"https://docs.rsshub.app/routes/game#wang-yi-da-shen\">https://docs.rsshub.app/routes/game#wang-yi-da-shen</a>');\n    }\n    const selectedType = Number.parseInt(ctx.req.param('type'));\n    let type;\n    switch (selectedType) {\n        case 1:\n            type = 'BD21K0DLwangning'; // 轻松一刻\n            break;\n        case 2:\n            type = 'CICMICLUwangning'; // 槽值\n            break;\n        case 3:\n            type = 'CICMOMBLwangning'; // 人间\n            break;\n        case 4:\n            type = 'CICMPVC5wangning'; // 大国小民\n            break;\n        case 5:\n            type = 'CICMLCOUwangning'; // 三三有梗","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/163/news/special.ts#L31-L67","documentation":"The 163 'special column' (专栏) route requires a numeric `type` (1–15) that selects which editorial column to fetch (1=轻松一刻, 2=槽值, 3=人间 …). The handler refuses to proceed when the segment is absent because there is no sensible default column.","triggerScenarios":"Calling /163/news/special without the :type segment, or with an empty value, so ctx.req.param('type') is falsy.","commonSituations":"Following a docs example that omitted the type; a radar rule that failed to capture the segment; constructing the URL programmatically and forgetting the final path component.","solutions":["Append a numeric type 1–15 to the route path (see the description table: 1=轻松一刻, 2=槽值, 3=人间, …, 15=沸点).","If you want a specific feed, request that column's number explicitly rather than the bare path.","If a radar rule generated the URL, fix its source/target to capture the segment."],"exampleFix":"// before\n/163/news/special\n// after\n/163/news/special/1","handlingStrategy":"validation","validationCode":"const VALID_SPECIAL_TYPES = new Set(Array.from({ length: 15 }, (_, i) => String(i + 1)));\nfunction valid163Special(type) {\n  return type != null && VALID_SPECIAL_TYPES.has(String(type));\n}","typeGuard":"function is163SpecialType(v): v is string {\n  return typeof v === 'string' && /^[1-9]$|^1[0-5]$/.test(v);\n}","tryCatchPattern":null,"preventionTips":["Treat `type` as required for the special-column route — never call the bare path.","Centralise the 1–15 mapping in one place so callers cannot drift from the route table.","If a radar rule feeds this route, assert it captured the segment before building the URL."],"tags":["validation","parameter","rsshub","required-field"],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}