API errors with application/vnd.citationstyles.csl+json accept headers

73 views
Skip to first unread message

Sebastian Karcher

unread,
Aug 22, 2016, 8:17:29 AM8/22/16
to ORCID API Users
Hi,
We're working on Orcid integration with Zotero (as a first step, allowing easy import of items from Orcid profiles to Zotero).

We're experiencing what I believe is a bug in the API. For some items, calling them with a application/vnd.citationstyles.csl+json accept header results in
{"response-code":500,"developer-message":"java.lang.NullPointerException","user-message":"Something went wrong in ORCID.","error-code":9008,"more-info":"http://members.orcid.org/api/api-error-codes"}

That's the case e.g. for
curl -LH "Accept: application/vnd.citationstyles.csl+json" https://pub.orcid.org/v2.0_rc2/0000-0003-1613-5981/work/4718317

that same item works with simple application/json and aother formats.

Also, some items do work with csl-JSON, e.g.
curl -LH "Accept: application/vnd.citationstyles.csl+json" https://pub.orcid.org/v2.0_rc2/0000-0003-1613-5981/work/4718317
goes through just fine.

Are we doing something wrong or is this an error you can fix on your side?
Thanks,
Sebastian

Sebastian Karcher

unread,
Aug 22, 2016, 8:19:56 AM8/22/16
to ORCID API Users
Sorry, that last bit should read

Also, some items do work with csl-JSON, e.g.
curl -LH "Accept: application/vnd.citationstyles.csl+json" https://pub.orcid.org/v2.0_rc2/0000-0003-1613-5981/work/20773244
goes through just fine.

Will Simpson

unread,
Aug 22, 2016, 11:53:59 AM8/22/16
to ORCID API Users
Hi Sebastian,

Thanks very much for reporting this problem.

You are correct, there is a bug!

I have filed a bug report here, and we are working on a fix.

The fix will be in the next release, which will be in a few days from now.

Regards,

Will

Sebastian Karcher

unread,
Aug 22, 2016, 10:06:38 PM8/22/16
to ORCID API Users
Great, thanks -- we have the PR ready on our side to have import to Zotero working the moment the API is fixed.
https://github.com/zotero/translators/pull/1099

Will Simpson

unread,
Sep 1, 2016, 10:37:56 AM9/1/16
to ORCID API Users
Hi Sebastian,

The fix for this was deployed to production yesterday.

Please can you try again now?

Many thanks,

Will

Philipp Zumstein

unread,
Sep 13, 2016, 6:10:11 AM9/13/16
to ORCID API Users
Hi Will,

Yes, I can confirm that this example works now. But there seems to be another bug. Here is an example:

$ curl -LH "Accept: application/vnd.citationstyles.csl+json" https://pub.orcid.org/v2.0_rc2/0000-0002-6485-9434/work/19047037

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   277    0   277    0     0    347      0 --:--:-- --:--:-- --:--:--   347{"response-code":500,"developer-message":"org.jbibtex.TokenMgrError: Lexical error at line 1, column 55.  Encountered: \"\\u00bc\" (188), after : \"\"","user-message":"Something went wrong in ORCID.","error-code":9008,"more-info":"http://members.orcid.org/api/api-error-codes"}

(BTW the Zotero translator for ORCID is now activated and can be used by the users and/or we can do more testing of your API;-)

Best regards,
Philipp
Reply all
Reply to author
Forward
0 new messages