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

open: print better error message when trying to open a session on non-existing workflows #738

Open
tiborsimko opened this issue Jan 15, 2025 · 0 comments

Comments

@tiborsimko
Copy link
Member

Current behaviour

When a user tries to open a Jupyter notebook session on a non-existing workflow, the error message is:

$ reana-client open -w nonexistent
==> ERROR: Interactive session could not be opened:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

This can be misleading as if there was something wrong with the cluster rather than the client arguments.

Expected behaviour

It will be more user friendly to say that the workflow does not exist, and therefore we cannot open a notebook session on it. Similarly as we do for other commands such as status:

$ reana-client status -w nonexistent
==> ERROR: Cannot retrieve the status of a workflow nonexistent:
REANA_WORKON is set to nonexistent, but that workflow does not exist. Please set your REANA_WORKON environment variable appropriately.
@tiborsimko tiborsimko moved this to Ready for work in 0.95.0 Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for work
Development

No branches or pull requests

1 participant