supervisor-frontend-service icon indicating copy to clipboard operation
supervisor-frontend-service copied to clipboard

Error messages on termpage template modals could be more specific

Open gridhead opened this issue 4 years ago • 4 comments

The error message on the modal shows the same error for invalid console-container attachment termsocket URI, even when that is not the case and actually, the container is just in the EXITED state. The messages could be made more specific to let know the user about the exact nuances behind the failure to attach a console.

Here's a screenshot.

image

gridhead avatar Mar 10 '21 18:03 gridhead

Hello, What should be done in this case to solve this?

sachindavra avatar May 15 '21 11:05 sachindavra

Hi @sachindavra,

There are two cases in which, an attempt to attach a termsocket to a container, may potentially fail.

  1. First, if a termsocket is attempted to be attached to a container that is not in a RUNNING state, the container cannot be interacted with and hence, a TTY webconsole cannot be generated.
  2. Second, if a termsocket is attempted to be attached to a container that does not exist, the container cannot be interacted with as it is non-existent and hence, a TTY webconsole cannot be generated.

The above modal shows an ERRONEOUS state to the user but is general for both of the above circumstances while we are looking for different error modals for different cause of failures.

gridhead avatar May 15 '21 12:05 gridhead

Hi @t0xic0der,

This seems related to Docker. I am in the initial phase of learning Docker. May be i can contribute later when i learn something about it. Sorry to bother you. I thought it's a python coding task.

sachindavra avatar May 15 '21 12:05 sachindavra

Not a problem.

Feel free to look for other issues that might be right up your alley.

gridhead avatar May 15 '21 12:05 gridhead