-
Notifications
You must be signed in to change notification settings - Fork 46
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
some get_paper results are empty #48
Comments
I've noticed last few weeks that requesting particular fields produces an internal server error for some papers. In your examples, I believe the By default, the library tries to fetch all fields. So, you can work around it by restricting the list of returned fields. from semanticscholar import SemanticScholar
sch = SemanticScholar()
print(sch.get_paper("c77cd64f26228442ffff9219bfd870c83c8747c0", fields=['year'])) curl https://api.semanticscholar.org/graph/v1/paper/c77cd64f26228442ffff9219bfd870c83c8747c0?fields=year Output: {'paperId': 'c77cd64f26228442ffff9219bfd870c83c8747c0', 'year': 1977} This will cause error: curl https://api.semanticscholar.org/graph/v1/paper/c77cd64f26228442ffff9219bfd870c83c8747c0?fields=tldr Ouput: {"message": "Internal Server Error"}
|
Change `ApiRequester` to raise an exception for HTTP 500 responses instead of returning empty objects (#48).
Upthumb. |
Here are two examples:
results in
But those are real papers according to the API:
results in:
My version is "0.3.2".
The text was updated successfully, but these errors were encountered: