Error messages needed for failed record imports #1220
Replies: 7 comments
-
@netsensei indeed, we cannot burden reviewers with api problems, and if we are too vague in our error messaging and report Anyway, apart from the error messaging itself, weren't we also thinking about generating an identifier, report that to the end user, and note that in the log message next to the error for faster tracking? |
Beta Was this translation helpful? Give feedback.
-
1/ All incoming requests get a request ID by default. We can display this ID when the server hits a fault condition and returns an error to the end-user. We currently do this in the context of adding or creating new contributors => when an error happens, you see a modal which includes a request ID and mention to contact the review team. 2/
The above was related to issues with uploading files where request ID's wouldn't be useful at all. |
Beta Was this translation helpful? Give feedback.
-
Is there a way where we can avoid burdening the user with any type of message, and automate this? |
Beta Was this translation helpful? Give feedback.
-
We've already added this feature in production to help debug contributors. In practice, I haven't received an issue yet where a request ID was mentioned. So, we might need to re-assess the usefulness here. Right now; debugging DOI import errors boils down to us to taking the DOI as it trickles through the tickets towards us, and then replicating the import on our own laptops while looking into the logs and figuring out what went wrong. That's "good enough" for now, as the frequency with which these issues pop up isn't all that high. Request ID's really become useful in a context where there's a high volume of operations, a significant amount of data problems occur, a commitment to return a swift response to the user and you need a way to delve through large amounts of log data to figure out what went wrong in a particular case. |
Beta Was this translation helpful? Give feedback.
-
And we also need to acknowledge that we allow reviewers to manually add/update a DOI, |
Beta Was this translation helpful? Give feedback.
-
Can we split off side notes like this to keep this issue clear and concise? Reading this a month later is very confusing :D Thanks! You can create a new issue and remove any superfluous comments. |
Beta Was this translation helpful? Give feedback.
-
@netsensei I have a suggestion:
Questions:
|
Beta Was this translation helpful? Give feedback.
-
Enhancement
TO BE REVISITED
Make errors more clear for DOI imports.
Basic errors already implemented, need more granular feedback.
Success criteria
This is a non-technical error for end-users that do not use technical terms.
When the import fails for a DOI:
Out of scope: Information missing. We will let people complete the required fields and publish or save as draft.
Automatic testing scenario
Additional context
Based on #1088 and #1035.
Suggestions:
Originally posted by @netsensei in #1088 (comment)
I've implemented validation errors in #1035 but the other types of errors will yield a more generic "something went wrong" error pop-up. We could be more specific; but I don't think we want to burden researchers with the minutiae of how an API works, no? We do want some human-friendly message that gives at least a general idea of what went wrong (e.g. "CrossRef could not be reached at this time, try again later", "The record could not be found with CrossRef", "The record could not be retrieved from CrossRef")
So, if we know how to word the errors, it shouldn't be that hard to make nicer error messages.
Screenshots
Current alert:
Try to import a DOI for a publication or dataset.
Beta Was this translation helpful? Give feedback.
All reactions