DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
30.95k stars 6.9k forks source link

微博 `Cannot read properties of undefined` #10046

Open SettingDust opened 2 years ago

SettingDust commented 2 years ago

路由地址

/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

github-actions[bot] commented 2 years ago
Searching for maintainers:

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.

Rongronggg9 commented 2 years ago

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

Rongronggg9 commented 2 years ago

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.

SettingDust commented 2 years ago

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

Rongronggg9 commented 2 years ago

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