RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

微博 `Cannot read properties of undefined`

Open SettingDust opened this issue 3 years ago • 5 comments

路由地址

/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,以确保该错误尚未被报告。

SettingDust avatar Jun 27 '22 01:06 SettingDust

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.

github-actions[bot] avatar Jun 27 '22 01:06 github-actions[bot]

Confirmed. I will try to figure out a fix later today.

Rongronggg9 avatar Jun 27 '22 03:06 Rongronggg9

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.

Rongronggg9 avatar Jun 27 '22 20:06 Rongronggg9

我可以看到,估计是移动版不登陆有的用户不给看

SettingDust avatar Jun 28 '22 01:06 SettingDust

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

Rongronggg9 avatar Jun 28 '22 02:06 Rongronggg9