DIYgod / RSSHub

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

知网期刊路由提示Cannot read properties of undefined (reading 'replace') #12994

Open KawausoJyou opened 1 year ago

KawausoJyou commented 1 year ago

路由地址

/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

github-actions[bot] commented 1 year 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 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.

Derekmini commented 1 year ago

我是本地自建服务,可以正常获取到内容:

Fatpandac commented 1 year ago

知网不能从国外访问了

KawausoJyou commented 1 year ago

我是本地自建服务,可以正常获取到内容:

国外和国内网址不一样了

KawausoJyou commented 1 year ago

知网不能从国外访问了

还可以访问,但是网址不一样

Derekmini commented 1 year ago

这个网址我试过,与原来的oversea网址获取数据的方式不一样了,无法获取到信息,最后不得已才更换为国内的网址。

但是这个路由是我两三个月之前修改好的,期间一直在使用,直到最近才有时间提交PR。然而,如果您发现CNKI已经有所改动,并且可以通过该链接获取到条目信息的话,欢迎提交PR。

我后续会提交限制地区区域的使用注明。

FDUZS commented 10 months ago

似乎现在国外访问会被统一跳转到 (chn.)oversea.cnki.net,所以在 PR #12949 之后通过海外 VPS 搭建的会报错? 我另一台位于欧洲的 VPS 搭建(时间刚好早于该 PR 合并)的 RSSHub 仍能正常输出知网 RSS