egonw / ons-wikidata

Open Notebook for Wikidata scripts
MIT License
3 stars 3 forks source link

`OpenCitations/quickstatements.groovy` fails on some DOIs #4

Closed egonw closed 2 years ago

egonw commented 3 years ago
# Fetching 10.1002/1099-0690(200204)2002:8<1397::AID-EJOC1397>3.0.CO;2-6 from https://opencitations.net/index/coci/api/v1/citations/10.1002/1099-0690(200204)2002:8<1397::AID-EJOC1397>3.0.CO;2-6 ...
Caught: java.io.IOException: Server returned HTTP response code: 400 for URL: https://opencitations.net/index/coci/api/v1/citations/10.1002/1099-0690(200204)2002:8<1397::AID-EJOC1397>3.0.CO;2-6
java.io.IOException: Server returned HTTP response code: 400 for URL: https://opencitations.net/index/coci/api/v1/citations/10.1002/1099-0690(200204)2002:8<1397::AID-EJOC1397>3.0.CO;2-6
        at quickstatements$_run_closure1.doCall(quickstatements.groovy:73)
        at jdk.internal.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at quickstatements.run(quickstatements.groovy:68)
egonw commented 2 years ago

The following command works fine (now):

groovy quickstatements.groovy -d "10.1002/1099-0690(200204)2002:8<1397::AID-EJOC1397>3.0.CO;2-6"