-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
When certain Profile accounts manually claim certain DOIs, the claims receive "Not found" errors and fail. Errors resemble the following:
[Error] 0000-0002-4684-9769 – 10.2312/egs.20221020: [{"status"=>404, "title"=>"Not found"}]
The claim will fail repeatedly if the DOI is claimed again. Other Profile accounts are able to claim the same DOI without issue.
Expected Behaviour
Claims should be processed or receive a descriptive error.
Steps to Reproduce
The error is difficult to reproduce but can be reproduced with certain Profile accounts and DOIs; for example, 0000-0002-4684-9769 with https://commons.datacite.org/doi.org/10.5438/sjx9-hb16.
Context (Environment)
The error makes it impossible to claim certain DOIs in Commons as a user.
Proposal
Hypothesis
The error is likely being generated here:
Line 197 in 1883d6f
| logger.error "[Error] #{uid} – #{doi}: #{format_error_message(result.body["errors"]).inspect}" |
After attempting to update the work here with a put code that is no longer consistent with the ORCID record:
Line 268 in 1883d6f
| work.update_work(options) |