RSSHub
RSSHub copied to clipboard
知网期刊路由提示Cannot read properties of undefined (reading 'replace')
路由地址
/cnki/journals/:name
完整路由地址
/cnki/journals/HIST
相关文档
https://docs.rsshub.app/journal.html#zhong-guo-zhi-wang-qi-kan
预期是什么?
正常获取内容
实际发生了什么?
Route requested: /journals/HIST Error message: Cannot read properties of undefined (reading 'replace') Helpful Information to provide when opening issue: Path: /journals/HIST Node version: v18.17.1 Git Hash: f0fab18
部署
自建
部署相关信息
OS: Linux, Node: v18.16.1, Docker: v20.10.21
额外信息
Route requested: /journals/HIST
Error message: Cannot read properties of undefined (reading 'replace')
Helpful Information to provide when opening issue:
Path: /journals/HIST
Node version: v18.17.1
Git Hash: f0fab18
这不是重复的 issue
- [X] 我已经搜索了现有 issue,以确保该错误尚未被报告。
Searching for maintainers:
-
/cnki/journals/:name
: @Fatpandac @Derekmini
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 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.
我是本地自建服务,可以正常获取到内容:
知网不能从国外访问了
我是本地自建服务,可以正常获取到内容:
国外和国内网址不一样了
知网不能从国外访问了
还可以访问,但是网址不一样
这个网址我试过,与原来的oversea网址获取数据的方式不一样了,无法获取到信息,最后不得已才更换为国内的网址。
但是这个路由是我两三个月之前修改好的,期间一直在使用,直到最近才有时间提交PR。然而,如果您发现CNKI已经有所改动,并且可以通过该链接获取到条目信息的话,欢迎提交PR。
我后续会提交限制地区区域的使用注明。
似乎现在国外访问会被统一跳转到 (chn.)oversea.cnki.net,所以在 PR #12949 之后通过海外 VPS 搭建的会报错? 我另一台位于欧洲的 VPS 搭建(时间刚好早于该 PR 合并)的 RSSHub 仍能正常输出知网 RSS