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

Improve returned user errors on RDAT submission #85

Open
tkaragianes opened this issue Nov 9, 2023 · 0 comments
Open

Improve returned user errors on RDAT submission #85

tkaragianes opened this issue Nov 9, 2023 · 0 comments

Comments

@tkaragianes
Copy link
Contributor

The server goes through a number of steps (tagging, heatmap generation, thumbnail creation) when a new RDAT is uploaded. If any of these steps errors (even if the overall upload succeeds), the user is presented with a 500 error that doesn't provided any more context. We ought to surface the steps to the user more concretely, and be clear if the upload fails (e.g. no save of the rdat) vs a processing step failed but data upload succeeded.

Specifically, this was surfaced with RMDB entry RNAPZ14_STD_0003, which uploaded correctly, but failed to generate a secondary structure thumbnail via VARNA:

CalledProcessError: Command 'java -cp /home/ubuntu/Server_RMDB/data/VARNA.jar ...  -o /home/ubuntu/Server_RMDB/data/thumbnail/RNAPZ14_STD_0002-0.png' returned non-zero exit status 1, referer: https://rmdb.stanford.edu/deposit/submit/
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