CNKI translator proxy error
I user proxy to access CNKI.The website will redirect to
https://kns-cnki-net-s.vpn2.njau.edu.cn/kns/brief/default_result.aspx, "kns-cnki-net-s.vpn2.njau.edu.cn" is the proxy URL suffix.Without a proxy, the URL is
https://kns.cnki.net/kns/brief/default_result.aspx.I have change the target in CNKI.js translator from "^https?://([^/]+\\.)?cnki\\.net" to "^https?://kns".188BET靠谱吗The target works fine, I can see "Save to Zotero (CNKI) " when I open the CNKI URL in Firefox.But an error appears "An error occurred saving with CNKI.Attempting to save using Save as Webpage instead.".In error report I found a message "[JavaScript Error: "HTTP POST
http://epub.cnki.net.s.vpn2.njau.edu.cn/kns/ViewPage/viewsave.aspx?TablePre=SCDBfailed with status code 404"]".
The post URL is added a proxy suffix.I don't know why the correct URL wrote in CNKI.js is changed after proxy?
The post URL is added a proxy suffix.I don't know why the correct URL wrote in CNKI.js is changed after proxy?
188BET靠谱吗You should reset your translators in Zotero, reset translators in the Zotero Connector, and try again.If you're still having trouble, we'd want to see a Debug ID188BET靠谱吗from the Zotero Connector for loading the page when it doesn't show "Save to Zotero (CNKI)".
188BET靠谱吗Also, what are the relevant proxy entries in the Proxies tab of the Zotero Connector preferences?
This is the debug output. https://send.firefox.com/download/4b84e9808e5d4ce4/#g4EmTtvDR7iBouV8-ska6A
And also, Could you show me some proxy config examples? @dstillman
In any case, the proxy you're using has a weird format — the
s
after the original hostname is non-standard, at least for EZproxy installations — but you can try creating two proxies, one with%h-s.vpn2.njau.edu.cn/%p
for the scheme and another with%h.s.vpn2.njau.edu.cn/%p
.Make sure "Automatically associate new hosts" is enabled for both and "Automatically convert between dots and hyphens in proxied hostnames" is enabled for the first one.It should then automatically add the ckni.net hostnames when you load them through the proxy (or you can enter them manually (e.g.,kns.cnki.net
) in the bottom section.The proxy setting:
proxies.proxies [{"id":1571127989363,"autoAssociate":true,"scheme":"%h-s.vpn2.njau.edu.cn/%p","hosts":[" https://kns-cnki-net-s.vpn2.njau.edu.cn/","www.cnki.net","kns.cnki.net"],"dotsToHyphens":false},{"id":1571129610032,"autoAssociate":true,"scheme":"%h.s.vpn2.njau.edu.cn/%p","hosts":[],"dotsToHyphens":false}]
[{"id":1571127989363,"autoAssociate":true,"scheme":"%h-s.vpn2.njau.edu.cn/%p","hosts":[" https://kns-cnki-net-s.vpn2.njau.edu.cn/","www.cnki.net","kns.cnki.net"],"dotsToHyphens":true},{"id":1571129610032,"autoAssociate":true,"scheme":"%h.s.vpn2.njau.edu.cn/%p","hosts":[],"dotsToHyphens":false}]
The Debug ID is D611557844. @dstillman
-s
, but that's not valid for HTTP URLs through your proxy.I'm not sure why your proxy uses that weird scheme, but if the translator can be modified to use the same scheme (HTTP or HTTPS) as the original page — which it should do anyway if possible — it should build a correct URL for you.The url without proxy:
http://www.wanfangdata.com.cn/details/detail.do?_type=perio&id=10.1111%2Fbjd.18291
The url with proxy:
https://www-wanfangdata-com-cn.vpn2.njau.edu.cn/details/detail.do?_type=perio&id=10.1111%2Fbjd.18291
188BET靠谱吗I have sent a bug report 349697958 from Zotero Connector.Is there any wrong with my proxy setting?