Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: Socket connection to 'wss://domain.com/ng-cli-ws' failed: in chrome's developer console when running angular in code-server

Open
#6,205 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
angular, aws, kubernetes, typescript

Research direction

Start with the code-server proxy guidelines and reproduce the deployment through EKS and Emissary-ingress, then inspect the src/index.html base href and package.json ng serve settings. Use Chrome's developer console to compare the failing WebSocket path with the configured mapping; done means the Angular app loads without the ng-cli-ws connection error.

Written by the indexing model from the issue text.

Description

bug
Is there an existing issue for this?
  • I have searched the existing issues
OS/Web Information
  • Web Browser: Chrome
  • Local OS: Ubuntu
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.12.0
Steps to Reproduce
  1. Deploy code-server as pod and create service in EKS cluster
  2. Use Emissary-ingress as proxy and create mapping to code-server userpod (eg /tempmap/ --> userpod service)
  3. Access the userpod at the URL www.domain.tld/tempmap/
  4. Install Nvm , npm and angular
  5. switch to the created directory and do ng serve and access the browser
  6. Now we will get white screen error
  7. Follow the code-server proxy guidelines
  8. try a) use in src/index.html
    b) add --serve-path /absproxy/4200 to ng serve in your package.json
  9. Socket connection to 'wss://domain.tld/ng-cli-ws' failed: not found error in chrome's developer console
Expected

Not getting Socket connection to 'wss://domain.tld/ng-cli-ws' failed: error in chrome developer consoleWebSocket

Actual

Getting webSocket connection to 'wss://domain.tld/ng-cli-ws' failed error

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

Code-server is deployed on AWS EKS cluster, and I am using emissary-ingress as proxy to access code-server. SSL is attached to AWS application load balancer used to access code-server. We are getting this error not always but getting them randomly.

Dominant language
TypeScript
Stars
79.4k
Forks
6.9k
Avg merge
2d 13h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder/code-server

All issues in coder/code-server

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.