DIYgod/RSSHub · warning · InvalidParameterError
这个话题还没有被创建或现在没有图文及动态内容。
Error message
这个话题还没有被创建或现在没有图文及动态内容。
What it means
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.
Source
Thrown at lib/routes/coolapk/huati.ts:43
},
name: '话题',
maintainers: ['xizeyoupan'],
handler,
};
async function handler(ctx) {
const tag = ctx.req.param('tag');
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`;
const response = await got(full_url, {
headers: utils.getHeaders(),
});
const data = response.data.data;
let out = await Promise.all(data.map((item) => utils.parseDynamic(item)));
out = out.filter(Boolean); // 去除空值
if (out.length === 0) {
throw new InvalidParameterError('这个话题还没有被创建或现在没有图文及动态内容。');
}
return {
title: `酷安话题-${tag}`,
link: 'https://www.coolapk.com/',
description: `酷安话题-${tag}`,
item: out,
};
}
View on GitHub (pinned to bed535e087)
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.
Defensive patterns
Strategy: validation
Validate before calling
// Validate tag is non-empty and reasonable
const tag = ctx.req.param('tag');
if (!tag || tag.length < 1) {
throw new InvalidParameterError('Topic tag is required');
} Prevention
- 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.
When it happens
Trigger: 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.
Common situations: 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.
Related errors
AI-assisted analysis of DIYgod/RSSHub@bed535e087 (2026-08-12).
Data as JSON: /api/errors/cd23d49759f29509.
Report an issue: GitHub.