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

Unexpected return values from DataCiteEvent::datacite_doi #57

Open
jesusbagpuss opened this issue Oct 23, 2023 · 0 comments
Open

Unexpected return values from DataCiteEvent::datacite_doi #57

jesusbagpuss opened this issue Oct 23, 2023 · 0 comments

Comments

@jesusbagpuss
Copy link

jesusbagpuss commented Oct 23, 2023

[NB the following was discovered by code inspection, and probably doesn't make anything specifically 'broken' - but reporting of failures would be improved by resolving this]

The following lines return unexpected values:

The return value from an EventQueue action should be an HTTP code:
https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/DataObj/EventQueue.pm#L138-L151

I think that if an event action dies then the error gets logged in the EventQueue object's description field.

Resolution would be to:

  • set an expected return code
  • set the EventQueue 'desciption' field to include useful information (visible in the EPrints interface when viewing tasks)
  • use $repo->log to make something appear in indexer.log file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant