[CheCode] Websocket closed & project not showing in file explorer #21977
Labels
area/editor/vscode
Issues related to the Code OSS editor of Che
kind/bug
Outline of a bug - must adhere to the bug report template.
status/need-triage
An issue that needs to be prioritized by the curator responsible for the triage. See https://github.
Describe the bug
I recently have been experiencing a
The workbench failed to connect to the server (Error: Websocket close with status code 1006)
error when using a DevWorkspace that has Che Code being contributed. Upon refreshing the page, the same error would pop up, or one that saysThe workbench failed to connect to the server (Error: Canceled)
.Here are screenshots of the errors:
Two other behaviours I noticed:
The editor starts up, but the project name in the file explorer has yellowed text. When clicking on the project in the file explorer, I got the following error:
This behaviour wasn't always reproducible, however - I only got it to occur once in testing.
When using a DevWorkspace that defined multiple projects, only a single project appears in the file explorer. Opening a terminal and navigating to the projects folder shows that all projects have been cloned to the file system correctly. Perhaps this is just a result of the DevWorkspace configuration, rather than a bug?
I apologize that this bug report is a bit unclear (3 different types of issue behaviours are described) - I am not sure yet if this all results from Che Code bug(s) or a DevWorkspace that isn't correctly configured. The DevWorkspaces used to reproduce these issues used to use Theia and are now using Che Code.
Che version
7.60@latest
Steps to reproduce
To reproduce the
The workbench failed to connect to the server (Error: Websocket close with status code 1006)
andThe workbench failed to connect to the server (Error: Canceled)
errors:I also experienced the websocket error in testing another issue. The following factory link resulted in similar behaviour.
To reproduce the behaviour where only a single project is shown in the file explorer, despite the DevWorkspace defining multiple projects:
kubectl get dw -n $NAMESPACE -w
Expected behavior
No websocket related error popups should be showing (these prevent you from actually using the editor) and all projects defined in the DevWorkspace should be viewable from the file explorer.
Runtime
OpenShift
Screenshots
No response
Installation method
other (please specify in additional context)
Environment
Linux
Eclipse Che Logs
No response
Additional context
These issues came up while updating the DevWorkspace repo samples to use che code rather than theia: devfile/devworkspace-operator#1025 (comment)
The issue also occurred in testing another bug: #21971 (comment)
The text was updated successfully, but these errors were encountered: