AtlasOfLivingAustralia / doi-service

ALA DOI minting service - integrates with ANDS to produce the DOI, provides a landing page, and stores the associated file
https://doi.ala.org.au/
0 stars 4 forks source link

Return meaningful error message when submitting a DOI fails #73

Closed qifeng-bai closed 12 months ago

qifeng-bai commented 2 years ago

When we submit an incomplete or incorrect DOI metadata to DOI service, it returns an error code instead of 200/201. However, the content of response is a 'html' page which does not include meaning error message for further debugging

For example: I set an incorrect provider -> doi_info.provider = 'DATACITE_1'

I will receive an error code: 400 and an ALA error page which contains words: 'An unexpected error has occurred'

adam-collins commented 12 months ago

moving to https://github.com/AtlasOfLivingAustralia/doi-service/issues/48