-
Notifications
You must be signed in to change notification settings - Fork 16
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
HTTP requests to zotxt reply "Request not allowed" for zotxt v5.0.2 and Zotero >= v5.0.71 #11
Comments
Apparently, this behaviour is to specification for Zotero >= 5.0.71, but it only affects "browsers". See retorquere/zotero-better-bibtex#1233. I can confirm that $ curl http://127.0.0.1:23119/zotxt/items?easykey=haslanger:2012debunking
[
{"id":"haslanger2012SocialConstructionDebunking","type":"chapter","title":"Social Construction: The ‘Debunking’ Project","container-title":"Resisting Reality: Social Construction and Social Critique","publisher":"Oxford University Press","page":"113–138","ISBN":"978-0-19-989262-4","title-short":"Social Construction","author":[{"family":"Haslanger","given":"Sally"}],"issued":{"date-parts":[[2012]]},"publisher-place":"Oxford","original-date":{"date-parts":[[2003]]}}
] However, when I try to receive data via Pandoc's |
It fails with the emacs zotxt plugin, too. Curl from powershell returns a 403. |
The change that introduces this behaviour in Zotero is, apparently, zotero/zotero@2603373. The code suggests that, mostly, it's about as what HTTP user agent the utility that makes the GET request identifies. I'm surprised that cURL fails. Try to use the @egh, I’m a bit at a loss how to implement this behaviour in pandoc-zotxt.lua. All I have is Pandoc's |
I've opened an issue for pandoc-zotxt.lua, where I summarise what I found out so far. It appears endpoints can be whitelisted to disable the security mechanism. I'm not sure whether plugins can do that though; I'm not familiar enough with Zotero's internals. |
I’ve just found that passing |
I've filed a report with Zotero. Apparently, the problem isn't that it mistakes Pandoc for a browser, but that Pandoc (and the emacs plugin, presumably) don't set the |
The Zotero team have responded. They promise to solve this with v5.0.73. |
@odkr Thank you so much for this. I'm sorry, I've been on vacation for a few weeks so I'm just catching up. |
I just ran into a similar-looking issue under Zotero 5.0.87, but it turned out to be PEBKAC thing: If a person has installed the emacs package (
I came to this from the Emacs side and didn't realize there even was an add-on for Zotero (in addition to the package for Emacs) involved until I started trying to debug this. So, consider this documentation / Google-fodder for the next person who makes the same mistake. |
@ewa Thank you! More recent versions of zotxt-emacs are intended to display a more helpful error message, namely "Zotxt version endpoint not found; is Zotero running and zotxt installed?" Did you not see that error? |
I'm using Zotero v5.0.72 and zotxt 5.0.2.
When I try to retrieve citation data for an item via a GET request to
http://127.0.0.1:23119/zotxt/items?easykey=<KEY>
, Zotero responds with "Request not allowed". I can reproduce this for other endpoints.I have recently upgraded to Zotero (the error also occurs in v5.0.71), which may (or may not) have caused the issue. I'm using the
zotero-bibliography
setting, so I can’t tell when things stopped working.Do you have any idea what's going on?
The text was updated successfully, but these errors were encountered: