You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When the DOI Service throws an error on saving a metadata object, it returns a 500 error but still saves the object. This prevents the creation of a resource map in downstream clients. In cases where there are DOI service errors, a 2XX code should be returned if the data was successfully saved. Metacat already emails notifications for any DOI service failures.
Steps to Reproduce:
Authenticate the user.
Submit a package that requires metadata registration with DOI.
Observe the logs when DOI throws an error and note the 500 error return event though the object was saved.
Expected Behavior:
A 2XX HTTP code should be returned if the data object was updated.
Actual Behavior:
A 500 HTTP code is returned.
Logs from API:
2024-10-21T23:02:48.870 ERROR 698f9f54 http://orcid.org/XXXX essdive_package_service.api.package - error:'DataONE Exception: MNodeService.update - The object ess-dive-5980c4971d8a725-XXXXX has been saved successfully on Metacat. However, the new metadata can't be registered on the DOI service: DOIlinkService.getMetadata - can't get the metadata for id 10.15485/2448101 since
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
The proxy server could not handle the request<p>Reason: <strong>DNS lookup failure for: lxinput1.doi.gov</strong></p></p>
</body></html>
'
Message from Metacat
Dear operators:
Metacat got the following error message when it interacted with the OSTI ELink Service.
@taojing2002@artntek Can you comment on the ramifications of this issue, and if the proposed solution seems like a reasonable way forward. It seems we could have different reasons for failures to issue the DOIs (including the DOI service is down, our configuration or credentials are out of date, the network is out, the request is malformed). The first of those are cases where we probably just need to try again later, or reconfigure and try again. The last case is one where an admin is probably needs to fully address the issue after notification.
Hi @vchendrix. This issue is a duplicate of this ticket, which was fixed in the Metacat 3.0.0 release. As your suggestion, Metacat now returns 2XX even though the doi registration fails,
But we need to improve the notification or re-try when the doi registration fails as the suggestion from Matt's above comment.
Description:
When the DOI Service throws an error on saving a metadata object, it returns a 500 error but still saves the object. This prevents the creation of a resource map in downstream clients. In cases where there are DOI service errors, a 2XX code should be returned if the data was successfully saved. Metacat already emails notifications for any DOI service failures.
Steps to Reproduce:
Expected Behavior:
A 2XX HTTP code should be returned if the data object was updated.
Actual Behavior:
A 500 HTTP code is returned.
Logs from API:
Message from Metacat
Proposed Solution:
Additional Notes:
The text was updated successfully, but these errors were encountered: