Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

米游社重复推送 #15558

Closed
1 task done
hirrao opened this issue May 11, 2024 · 3 comments · Fixed by #15567
Closed
1 task done

米游社重复推送 #15558

hirrao opened this issue May 11, 2024 · 3 comments · Fixed by #15567
Labels
RSS bug Something isn't working

Comments

@hirrao
Copy link

hirrao commented May 11, 2024

路由地址

/mihoyo/bbs/official/:gids/:type?/:page_size?/:last_id?

完整路由地址

/mihoyo/bbs/official/6/1

相关文档

https://docs.rsshub.app/zh/routes/game#%E7%B1%B3%E6%B8%B8%E7%A4%BE-%E5%AE%98%E6%96%B9%E5%85%AC%E5%91%8A

预期是什么?

正常路由米游社公告

实际发生了什么?

间歇性来自星穹铁道的公告会在几天后由https://www.miyoushe.com/ys/article/XXX, 重新出现在路由中, 且不完整, 使用RSStt会进行多遍推送 比如https://www.miyoushe.com/sr/article/52432218
image
在多天后重新以https://www.miyoushe.com/ys/article/52432218
image
的形式再次进行推送, 此次推送图片和实际文本也都不具有, 发现重复推送后检查Rsshub生成的Rss(已经隔了一段时间, 缓存已经过期), 发现只有正常的那个Rss留存
长时间订阅该路由中的原神和星穹铁道, 从上个月底开始出现此类问题, 且仅有星穹铁道这个路由出现此类问题

部署

自建

部署相关信息

Debian 12 Docker 20.10.24

额外信息

Rsshub无报错

这不是重复的 issue

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@hirrao hirrao added the RSS bug Something isn't working label May 11, 2024
Copy link
Contributor

Searching for maintainers:
  • /mihoyo/bbs/official/6/1: Route not found

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.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@github-actions github-actions bot reopened this May 11, 2024
Copy link
Contributor

Searching for maintainers:
  • /mihoyo/bbs/official/:gids/:type?/:page_size?/:last_id?: @CaoMeiYouRen

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.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@Rongronggg9
Copy link
Contributor

Wearing my RSStT hat, I am here to confirm that it is not a bug of RSStT.

The root cause of the issue is located here:

const gid = res?.data?.data?.post?.post?.game_id || '2';
const author = res?.data?.data?.post?.user?.nickname || '';
const content = res?.data?.data?.post?.post?.content || '';
const tags = res?.data?.data?.post?.topics?.map((item) => item.name) || [];

link: `https://www.miyoushe.com/${GAME_SHORT_MAP[gid]}/article/${post_id}`,

When the getPostFull endpoint returns an error, these fallback values make the post empty and the link be .../ys/.... Since guid is filled with link in the route, the uniqueness of guid is gone.

Anyway, fixing the issue is quite easy and you'll see a PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants