[Bug]: The workbench failed to connect to the server (Error: Failed to construct 'WebSocket':
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: macOS
- Remote OS: Ubuntu
- Remote Architecture: amd64
code-server --version
: 1.71.2 74b1f979648cc44d385a2286793c226e611f59e7 x64
Steps to Reproduce
- open code-server
- connected with IPV6
- Error: The workbench failed to connect to the server (Error: Failed to construct ‘WebSocket’: The URL ‘ws://[[2409:8a55:223b:xxxxxxxxxxxxxx]]:8080/stable-74b1f979648cc44d385a2286793c226e611f59e7?reconnectionToken=58166be8-c072-4962-bfb5-dbb1d5edb8f7&reconnection=false&skipWebSocketFrames=false’ is invalid.)
Expected
The WebSocket should work and should not have duplicated brackets.
Actual
Error: The workbench failed to connect to the server (Error: Failed to construct ‘WebSocket’: The URL ‘ws://[[2409:8a55:223b:xxxxxxxxxxxxxx]]:8080/stable-74b1f979648cc44d385a2286793c226e611f59e7?reconnectionToken=58166be8-c072-4962-bfb5-dbb1d5edb8f7&reconnection=false&skipWebSocketFrames=false’ is invalid.)
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
- I cannot reproduce this in VS Code.
- I cannot reproduce this in GitHub Codespaces.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
No response
Issue Analytics
- State:
- Created a year ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
[Bug]: The workbench failed to connect (IPv6) · Issue #5386
The workbench failed to connect to the server (Error: Failed to construct 'WebSocket': The URL 'wss://[200:12/stable- ...
Read more >How do I solve this error? - Game Makers Help - Construct 3
Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
Read more >2037967 – Apache reverse proxy doesn't seem to handle ...
Type: Bug ... Apache error log on the host (2.42 MB, text/plain) ... "The workbench failed to connect to the server (Error: WebSocket...
Read more >Getting the reason why websockets closed with close code 1006
Try overriding the built in On Connected /Disconnected methods on the server and see. My assumption only is that you're closing it but...
Read more >WebSocket connection to 'wss://...' failed. ASP .Net Core Web ...
PS: we found a workaround to the bugs this web socket issue provokes in the app by configuring the options of endpoints.MapBlazorHub in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed fixed! Love u! Love code-server! I close this issue.
CSP could be the hash issue we are fixing in 4.8.1.