-
Notifications
You must be signed in to change notification settings - Fork 105
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
zot.everything doesn't seem to be working #186
Comments
Hard to say without seeing the error, but it seems likely to be on the server side if that call was working for you previously. |
Thanks for the swift response! The error message is as follows: Could the server error be solely responsible for
|
Yep – HTTP errors are caught but surfaced so that you (or I) can see what went wrong. In this case, we really don't have much to go on since internal errors on the server side typically don't convey much extra information. I will note two things, however:
|
|
In that case it looks to be wholly on the server side – you may be able to bring this to their attention on the forum. |
@yusufaliozkan Did you figure this out? Trying to familiarize myself with pyzotero and getting the same error |
I encountered this error using the local API. Python 3.12.7 With Zotero(...,local=True), zot.endpoint gets set to This code: zot = zotero.Zotero(
library_id=os.getenv("ZOTERO_USER_ID"),
library_type="user",
api_key=os.getenv("ZOTERO_API_KEY"),
local=True,
)
print(zot.everything(zot.items())) Produces this error:
I noticed This patch to def build_url(base_url, path, args_dict=None):
"""Build a valid URL so we don't have to worry about string concatenation errors and
leading / trailing slashes etc.
Returns a list in the structure of urlparse.ParseResult"""
+ if 'localhost' in base_url and path.startswith('/api'):
+ path = path.replace('/api', '')
if base_url.endswith("/"):
base_url = base_url[:-1]
url_parts = list(urlparse(base_url))
url_parts[2] += path
if args_dict:
url_parts[4] = urlencode(args_dict)
return urlunparse(url_parts) The error occurred when I did |
@g-simmons This is fixed in v1.6.0, but has nothing to do with this issue. |
Platform: Jupyter notebook
Python version: 3.10.6
Pyzotero version: 1.5.25
Problem Description
zot.everything(zot.top(limit=10))
. When I try, it gives Error 500 suggesting the error is related to the Zotero server. It was working fine until this morning. There was an issue with the Zotero server discussed in the forum this morning. I'm not entirely sure if the error I got is related to the server issue but other elements ofpyzotero
are working fine.The text was updated successfully, but these errors were encountered: