Skip to content
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

Nullpointer exception at /works?query.author #552

Open
marquesarthur opened this issue Mar 19, 2021 · 2 comments
Open

Nullpointer exception at /works?query.author #552

marquesarthur opened this issue Mar 19, 2021 · 2 comments

Comments

@marquesarthur
Copy link

When going over the README.md and doing a couple of examples, I got a null pointer exception (see JSON attachment)

My input query was:

https://api.crossref.org/works?query.author:ali+ameli&mailto=<my university email>

Note that I omitted my institution email on this issue due to privacy reasons. replace it with an email of your choice
null_pointer.zip

@ppolischuk
Copy link
Collaborator

Hi, it looks like your query was incorrectly formatted. query.author should be followed by a = rather than a :

https://api.crossref.org/works?query.author=ali+ameli&mailto=<your email address> returns a valid response.

@marquesarthur
Copy link
Author

Thanks @ppolischuk

Shouldn't it return a 404 bad request instead of exposing the server stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants