Skip to content

Certain manual ORCID claims receive [{"status"=>404, "title"=>"Not found"}] errors #109

@codycooperross

Description

@codycooperross

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:

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:

work.update_work(options)

Front logo Front conversations

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions