-
Notifications
You must be signed in to change notification settings - Fork 31
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
Content Negotiation fails with TypeError for non-dois #83
Comments
Thanks for the issue @goerz Hmm. For Field queries, e.g., What's the use case? So I can try to direct you to the appropriate method. I'm not sure what the use case is because field queries are meant to filter a search down further, and CN is meant for getting citations for identifiers (there's no search component in CN) |
The use case is "get the most likely BibTeX for a free-form query". I can easily get around this assuming the "most likely record" has a DOI, by first doing Nonetheless, there's a bug in the habanero/habanero/cnrequest.py Lines 7 to 8 in 4646c37
and require that Of course, this will push up the problem up to any place where Note that Lines 4 to 5 in 4646c37
ids=None and format="bibtex" are not used together (although ids=None may still be OK for other formats, like the citeproc-json ).
|
Thanks. For that use case. Agree, there's definitely a bug, and thanks for the details on it. i'll fix |
@goerz can you reinstall and try again |
Content negotiation throws a
TypeError
if it is called as e.g.whith some string
query
. This is due to the definition ofCNRequest
:With the above call,
ids
is passed asNone
, and the query is in thekwargs
. The line that takes thelen
ofids
then fails.The text was updated successfully, but these errors were encountered: