{"record":{"id":"cd23d49759f29509","repo":"DIYgod/RSSHub","slug":"error-cd23d4","errorCode":null,"errorMessage":"这个话题还没有被创建或现在没有图文及动态内容。","messagePattern":"这个话题还没有被创建或现在没有图文及动态内容。","errorType":"exception","errorClass":"InvalidParameterError","httpStatus":null,"severity":"warning","filePath":"lib/routes/coolapk/huati.ts","lineNumber":43,"sourceCode":"    },\n    name: '话题',\n    maintainers: ['xizeyoupan'],\n    handler,\n};\n\nasync function handler(ctx) {\n    const tag = ctx.req.param('tag');\n    const full_url = utils.base_url + `/v6/page/dataList?url=%23%2Ffeed%2FmultiTagFeedList%3FlistType%3Ddateline_desc%26tag=${tag}&title=%E6%9C%80%E6%96%B0%E5%8F%91%E5%B8%83&subTitle=&page=1`;\n    const response = await got(full_url, {\n        headers: utils.getHeaders(),\n    });\n    const data = response.data.data;\n\n    let out = await Promise.all(data.map((item) => utils.parseDynamic(item)));\n\n    out = out.filter(Boolean); // 去除空值\n    if (out.length === 0) {\n        throw new InvalidParameterError('这个话题还没有被创建或现在没有图文及动态内容。');\n    }\n    return {\n        title: `酷安话题-${tag}`,\n        link: 'https://www.coolapk.com/',\n        description: `酷安话题-${tag}`,\n        item: out,\n    };\n}\n","sourceCodeStart":25,"sourceCodeEnd":52,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/coolapk/huati.ts#L25-L52","documentation":"The coolapk topic (话题/hashtag) route fetches items tagged with the given tag, but after running all items through utils.parseDynamic and filtering out falsy results, the array is empty. InvalidParameterError indicates the topic either does not exist or has no parseable dynamic content.","triggerScenarios":"The coolapk API endpoint /v6/page/dataList with the tag parameter returns either an empty data array or items that all fail to parse in utils.parseDynamic. The tag may be misspelled, newly created with no content, or contain only unsupported content types.","commonSituations":"Typo in the tag parameter; the topic was just created and has no posts yet; the topic exists but all posts are of types parseDynamic does not handle (e.g., video-only, polls); coolapk changed their tag feed API response structure.","solutions":["Verify the tag exists by searching for it on coolapk.com or the coolapk app.","Check if the tag has any actual posts by visiting the topic page directly.","Log the raw data array to see if items are being returned but failing to parse.","Update utils.parseDynamic if new content types are present in the response."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Validate tag is non-empty and reasonable\nconst tag = ctx.req.param('tag');\nif (!tag || tag.length < 1) {\n    throw new InvalidParameterError('Topic tag is required');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify the tag exists on coolapk.com before subscribing.","Log raw data items when all parsed results are falsy to identify unsupported types.","Update utils.parseDynamic when coolapk adds new content formats."],"tags":["coolapk","validation","hashtag","api-change"],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}