-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Subpath support in Code serve-web for WSS connections #208278
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.87.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
These are latest code as of 20240321, no version tagged yet. |
Fixed by #207932 |
@aeschli this issue seems like it is still present. It is possible to start the server and get server-base-path to work for most network communications, but when accessing the server from the browser you get a popup indicating websocket connections fail. When inspecting network traffic, websocket connections indeed tries to initialize connections without the specified base path. It looks like @zuoky also can confirm this issue since he asserts that he is using the latest code as of 20240321 (three days after #207932 was merged). @zuoky are you able to confirm that this is still not working from your side? |
Here's what I tested and works for me: (latest insiders build)
If you have any other configuration (e.g. a proxy server) you will have to investigate if the issue is there. If there's anything VS Code needs to add to make additional setups working, please let us know. The best is to provide a fix through a PR. If the steps above don't work for you, please create a new issue and describe what's not working. |
We have tried these and can reproduce this issue: 1 Configure a server base path and start vscode.
|
@aeschli Could the reason why it works for you be that since you are not behind a proxy, the WSS request will succeed even without the serverBasePath added (i.e. neither the server nor client expects the WSS requests to have the base path added). In my and @zuoky :s case only requests with the proper prefix will be forwarded to the server and thus the WSS connections will be refused. |
Again, please file a separate issue so we can investigate in there. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
code serve-web --host 0.0.0.0 --port 8080 --default-workspace=/home/workspace --default-folder=/home/workspace --disable-telemetry --server-base-path=/ides/foo --without-connection-token
Related issue: Github Issue
Metion: @connor4312
The text was updated successfully, but these errors were encountered: