DIYgod / RSSHub

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

大量路由不可用 TypeError: got(...).json is not a function #15763

Closed ouuan closed 3 months ago

ouuan commented 3 months ago

路由地址

/alistapart
/chaping/newsflash
/codeforces/contests
/codeforces/recent-actions/:minrating?
/dlnews/:category?
/gov/beijing/bphc/*
/grist
/luogu/user/blog/:name
/npm/package/:name{(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*}
/twreporter/newest

完整路由地址

/alistapart
/chaping/newsflash
/codeforces/contests
/codeforces/recent-actions
/dlnews
/gov/beijing/bphc/project
/grist
/luogu/user/blog/ouuan
/npm/package/rsshub
/twreporter/newest

相关文档

14922

预期是什么?

正常返回结果

实际发生了什么?

TypeError: got(...).json is not a function

部署

RSSHub 演示 (https://rsshub.app)

部署相关信息

No response

额外信息

目前有若干单个路由的 issue 和修复(例如 #15648、#15207、#15107、#15134 ……),但仍有大量路由有这个问题,光是搜索 got.*\.json\( 就能搜到很多,可能还有别的。

可以考虑给 fakeGot 加上 .json() method,或者尽量全面地对各个路由都进行修复,而非报一个修一个,我上面列出的路由很可能还是不全。

这不是重复的 issue

github-actions[bot] commented 3 months 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.

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[bot] commented 3 months 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.

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 关键词,或者留下评论。我们会重新审核。

TonyRL commented 3 months ago

Closed in #15780