{"record":{"id":"12e3be9742d3297e","repo":"DIYgod/RSSHub","slug":"weibo-group-timeline-is-not-available-due-to-the-a","errorCode":null,"errorMessage":"Weibo Group Timeline is not available due to the absense of [Weibo Cookies]. Check <a href=\"https://docs.rsshub.app/deploy/config#route-specific-configurations\">relevant config tutorial</a>","messagePattern":"Weibo Group Timeline is not available due to the absense of \\[Weibo Cookies\\]\\. Check <a href=\"https://docs\\.rsshub\\.app/deploy/config#route-specific-configurations\">relevant config tutorial</a>","errorType":"exception","errorClass":"ConfigNotFoundError","httpStatus":null,"severity":"error","filePath":"lib/routes/weibo/group.ts","lineNumber":45,"sourceCode":"        supportBT: false,\n        supportPodcast: false,\n        supportScihub: false,\n    },\n    name: '自定义分组',\n    maintainers: ['monologconnor', 'Rongronggg9'],\n    handler,\n    description: `::: warning\n由于微博官方未提供自定义分组相关 api, 此方案必须使用用户\\`Cookie\\`进行抓取\n\n因微博 cookies 的过期与更新方案未经验证，部署一次 Cookie 的有效时长未知\n\n微博用户 Cookie 的配置可参照部署文档\n:::`,\n};\n\nasync function handler(ctx) {\n    if (!config.weibo.cookies) {\n        throw new ConfigNotFoundError('Weibo Group Timeline is not available due to the absense of [Weibo Cookies]. Check <a href=\"https://docs.rsshub.app/deploy/config#route-specific-configurations\">relevant config tutorial</a>');\n    }\n\n    const gid = ctx.req.param('gid');\n    const groupName = ctx.req.param('gname') || '微博分组';\n    let displayVideo = '1';\n    let displayArticle = '0';\n    let displayComments = '0';\n    if (ctx.req.param('routeParams')) {\n        if (ctx.req.param('routeParams') === '1' || ctx.req.param('routeParams') === '0') {\n            displayVideo = ctx.req.param('routeParams');\n        } else {\n            const routeParams = querystring.parse(ctx.req.param('routeParams'));\n            displayVideo = fallback(undefined, queryToBoolean(routeParams.displayVideo), true) ? '1' : '0';\n            displayArticle = fallback(undefined, queryToBoolean(routeParams.displayArticle), false) ? '1' : '0';\n            displayComments = fallback(undefined, queryToBoolean(routeParams.displayComments), false) ? '1' : '0';\n        }\n    }\n","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/DIYgod/RSSHub/blob/bed535e0879dc71c5aff6f1e7bd1ac21ede40115/lib/routes/weibo/group.ts#L27-L63","documentation":"Thrown by the Weibo custom group timeline route when `config.weibo.cookies` is not set. This route scrapes the private group feed API (`https://m.weibo.cn/feed/group?gid=...`) which requires user authentication. Weibo does not provide an official API for custom groups, so cookies are the only access method. This is a `ConfigNotFoundError`.","triggerScenarios":"A request to `/weibo/group/:gid/:gname?/:routeParams?` on an instance without `WEIBO_COOKIES` configured. The handler checks immediately at line 44 before attempting any API call.","commonSituations":"Same as error 617: the `WEIBO_COOKIES` env var is missing, the cookie expired and was removed, or the user is on a shared public instance that doesn't support cookie-based routes.","solutions":["Configure `WEIBO_COOKIES` in the RSSHub environment with a valid cookie from a logged-in Weibo session.","Follow the deployment docs linked in the error message for cookie extraction instructions.","If cookies are unavailable, this route cannot be used — consider routes that don't require authentication."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Ensure WEIBO_COOKIES is set in environment\nif (!process.env.WEIBO_COOKIES) {\n    throw new Error('WEIBO_COOKIES must be configured for /weibo/group route');\n}","typeGuard":null,"tryCatchPattern":"try {\n    const feed = await fetchRss('/weibo/group/' + gid);\n} catch (e) {\n    if (e.name === 'ConfigNotFoundError') {\n        console.error('Configure WEIBO_COOKIES to use Weibo group timelines.');\n    }\n    throw e;\n}","preventionTips":["Configure WEIBO_COOKIES before subscribing to Weibo group feeds.","Re-extract cookies periodically as they expire.","Self-host RSSHub for cookie-dependent routes — public instances typically don't support them."],"tags":["config-error","config-not-found","authentication","weibo","cookies","rss-route"],"backgroundTag":null,"analyzedSha":"bed535e0879dc71c5aff6f1e7bd1ac21ede40115","analyzedAt":"2026-08-12T19:29:35.364Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}