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

KG errors during Step 3 #30

Open
ceteri opened this issue Dec 24, 2019 · 2 comments
Open

KG errors during Step 3 #30

ceteri opened this issue Dec 24, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ceteri
Copy link
Contributor

ceteri commented Dec 24, 2019

20190717_usda_wic_publications:  78%|#######7  | 477/615 [09:09<02:41,  1.17s/it]Traceback (most recent call last):
  File "/home/ceteri/RCGraph/venv/lib/python3.6/site-packages/richcontext/scholapi/scholapi.py", line 264, in publication_lookup
    raise Exception(str(meta))
Exception: {'error': 404, 'message': 'The paper you requested could not be found.'}
ERROR: 10.1542/peds.2017-3716
Traceback (most recent call last):
  File "/home/ceteri/RCGraph/venv/lib/python3.6/site-packages/richcontext/scholapi/scholapi.py", line 264, in publication_lookup
    raise Exception(str(meta))
@ceteri ceteri added the bug Something isn't working label Dec 24, 2019
@ceteri
Copy link
Contributor Author

ceteri commented Dec 24, 2019

Also,

20191119_PublicSchools_publica:  25%|##5       | 5/20 [00:06<00:18,  1.25s/it]Traceback (most recent call last):
  File "./run_step3.py", line 40, in gather_pdf
    meta = api.publication_lookup(doi)
  File "/home/ceteri/RCGraph/venv/lib/python3.6/site-packages/richcontext/scholapi/scholapi.py", line 234, in publication_lookup
    meta = json.loads(requests.get(url).text)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@ceteri
Copy link
Contributor Author

ceteri commented Dec 24, 2019

Also,

ERROR: 10.1023/a:1016694701704
Traceback (most recent call last):
  File "/home/ceteri/RCGraph/venv/lib/python3.6/site-packages/richcontext/scholapi/scholapi.py", line 257, in publication_lookup
    meta = json.loads(requests.get(url).text)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 6 column 1 (char 5)

@ceteri ceteri self-assigned this Dec 30, 2019
@ceteri ceteri pinned this issue Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant