-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Terminal Launcher Error Unhandled Error #15566
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I opened Jupyter Lab from the Anaconda Prompt (Run As Administrator) Thank you |
@winsumloosesum Thanks for opening this issue! Can you please share the OS and version, the JupyterLab version, and the Chrome version you're running? In addition, when you try to open a terminal and you see this error, do you see any error messages in your browser's console or in the Anaconda command-line prompt? If so, please add those to this issue. |
@winsumloosesum Can you please share the info requested above? Thanks! |
Hi! I'm working on developing a custom TerminalManager (https://github.com/jupyter-server/jupyter_server_terminals/blob/93a84aabb51f477a5b3eb90ce88a2366cdccdb48/jupyter_server_terminals/terminalmanager.py#L25) that allows to set a maximum number of open terminals; when the máximum number is reached, a tornado.web.HTTPError(409, ..) is raised when calling to A "Uncaught (in promise) Error:" is seen in the Chrome console: It seems that the initial point of this casuistry is at:
I have seen the same casuistry working with JupyterLab 3.6.6 and 4.0.10. |
@asoriano-stratio are you suggesting that JupyterLab should catch this error? |
I don't have much knowledge of Javascript, but reviewing the browser console traces and looking at the JupyterLab code I seem to understand that there are certain operations related to the TerminalManager that are not "protected" against possible errors in the request to the back server (Http code error other than 200 OK), as it seems to happen in the operation of creating a new terminal session ("async startNew" function in the manager.ts file); it seems to me that other functions (such as async requestRunning) do catch errors in the request to the back and are shown in the UI. |
When creating a terminal, TerminalLauncher produces an error if the result is anything other than 200 OK. Allow extensions to use HTTP response codes to indicate errors that can show up in the UI.
(Edited per @asoriano-stratio 's comment below: #15566 (comment) )
The text was updated successfully, but these errors were encountered: