-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Open
Labels
RSS bugSomething isn't workingSomething isn't working
Description
路由地址
/weibo/timeline/:uid/:feature?/:routeParams?
完整路由地址
/weibo/timeline/7754798005
相关文档
https://docs.rsshub.app/routes/weibo#weibo-timeline-uid-feature-routeParams
预期是什么?
在使用 OAuth2 完成授权后,应当能正常获取该微博用户(UID: 7754798005)的时间线 RSS 数据。
实际发生了什么?
严格按照文档使用 OAuth2 进行授权。
-
授权后访问:
通过https://api.weibo.com/oauth2/authorize...获取 code 并访问路由,接口返回 503 错误。
后台日志报错:TypeError: Cannot read properties of undefined (reading 'userInfo')。
这表明 RSSHub 在通过 OAuth2 获取用户信息时,解析返回的数据结构失败(可能是微博上游接口字段变更)。 -
未授权直接访问:
接口响应极快 (2ms),但返回的是一个错误的、空的 RSS。
检查 XML 发现 Self Link 变成了.../weibo/timeline/0,UID 被错误置为 0,说明未授权状态下参数未能正确传递或解析。
部署
自建
部署相关信息
Node Version: v24.13.0 Git Hash: ac1a023 Git Date: Sun, 18 Jan 2026 00:58:27 GMT Deployment: Docker / Self-hosted
额外信息
**Log output (With OAuth2):**
error: Error in /weibo/timeline/7754798005: TypeError: Cannot read properties of undefined (reading 'userInfo')
info: --> GET /weibo/timeline/7754798005 503 3s
**Response (Without Auth):**
Response time: 2ms (Abnormal)
Return body:
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
...
<atom:link href="http://www.reader.aptzone.cc/weibo/timeline/0" rel="self" type="application/rss+xml"/>
...
</channel>
</rss>这不是重复的 issue
- 我已经搜索了 现有 issue,以确保该错误尚未被报告。
dosubot
Metadata
Metadata
Assignees
Labels
RSS bugSomething isn't workingSomething isn't working