-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
serve-web throwing error "Unauthorized client refused" #191276
Comments
I'm not able to reproduce this. Can you grab a screenshare so I can see I'm doing the right steps? http://gifcap.dev/ is useful |
I am not able to provide a screenshare. Keep in mind that if you are navigating via localhost or 127.0.0.1 then you will not be able to replicate this issue. I have been able to replicate this on multiple servers (both Alma and Ubuntu) and on completely different networks, with completely different browsers. Here are the steps to replicate. On remote system: rm -rf ~/.vscode*insiders
rm -f ./code-insiders
wget 'https://code.visualstudio.com/sha/download?build=insider&os=cli-alpine-x64' -O - | tar -xvz
./code-insiders serve-web --host 0.0.0.0
On local system: |
Ah, I see. That is because the server connection depends on the web cryptography API which, when not on localhost, is required to be served from a secure context. Unfortunately this is a browser limitation. Currently the CLI does not support running |
Ok, that makes sense. So maybe some kind of documentation or error message stating that http is not supported would clear that up. I just put a reverse proxy with a valid TLS certificate in front of it and it is working. Thanks 👍 |
Added to the release notes |
Does this issue occur when all extensions are disabled?: Yes/No
Related to #191014
Steps to Reproduce:
./code-insiders serve-web --host 0.0.0.0
An unexpected error occurred that requires a reload of this page.
The workbench failed to connect to the server (Error: Connection error: Unauthorized client refused)
The text was updated successfully, but these errors were encountered: