微博 `Cannot read properties of undefined`
路由地址
/weibo/user/:uid/:routeParams?
完整路由地址
/weibo/user/1785452997
相关文档
https://docs.rsshub.app/social-media.html#wei-bo
预期是什么?
正常工作
实际发生了什么?
无法工作
部署
自建
部署相关信息
No response
额外信息
Route requested: /weibo/user/1785452997
Error message: Cannot read properties of undefined (reading 'filter')
https://github.com/DIYgod/RSSHub/blob/master/lib/routes/weibo/user.js#L45=
这不是重复的 issue
- [X] 我已经搜索了现有 issue,以确保该错误尚未被报告。
Searching for maintainers:
-
/weibo/user/:uid/:routeParams?: No maintainer listed, possibly a v1 or misconfigured route
To maintainers: if you are not willing to be disturbed, list your username in
scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.
如果有任何路由无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。
If there is any route not found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
Confirmed. I will try to figure out a fix later today.
So the problem turns out to be the user's weibo are invisible on WAP Weibo (https://m.weibo.cn/u/1785452997), but still visible on Web Weibo (https://weibo.com/1785452997). This may be a new restriction from Weibo and currently nothing can solve this problem on the RSSHub side unless someday the Weibo route migrates to Web-Weibo-based grabbing. But at least for now, there is not enough motivation to perform such a migration.



我可以看到,估计是移动版不登陆有的用户不给看
Currently there is no plan to add a "login" feature to the /weibo/user route since it is quite different from that one in /weibo/timeline. In the meantime, I do not have a weibo account, so there is little I can help unless someday the migration to Web-Weibo-based grabbing need to be performed.
But thanks for your report. It may be the first known report indicating that WAP Weibo differs from Web Weibo in terms of account visibility even if the account is of low followers count.
#7202