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

get_papers will fail if one of the paper ids isn't found #1

Open
JessFairbairn opened this issue Feb 21, 2024 · 0 comments
Open

get_papers will fail if one of the paper ids isn't found #1

JessFairbairn opened this issue Feb 21, 2024 · 0 comments

Comments

@JessFairbairn
Copy link

JessFairbairn commented Feb 21, 2024

  • I'm submitting a ...
    [X ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    When one of the paper IDs sent to the bulk paper lookup endpoint isn't found, the API returns a null in that position. This then fails in the constructor for the Paper class (specifically in the _initAttributes method).

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
    Think this can probably be fixed with a simple null check in the .map function

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

1 participant