Closed
Description
OS/Web Information
- Web Browser: Firefox 95.0 and Chrome 96.0.4664.110
- Local OS: Mac OS Monterey 12.1
- Remote OS: Ubuntu 20.04.3
- Remote Architecture: amd64
code-server --version
: 4.0.0
Steps to Reproduce
- Upgraded from 3.12.0 to 4.0.0 by installing the deb package with apt install.
- Going to Manage - Color Theme - Select a random color theme.
Expected
Color theme should change.
Actual
Changing the color theme is simply ignored.
Logs
Logs from journalctl:
Dec 16 22:16:04 example code-server[2311357]: [22:16:04] [Theme Service] Attempting to find user's active theme: Default Dark+
Dec 16 22:16:04 example code-server[2311357]: [22:16:04] [10.220.117.24][d0f9198c][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
Dec 16 22:16:04 example code-server[2311357]: [22:16:04] [10.220.117.24][2b7a30be][ExtensionHostConnection] <2312085> Extension Host Process exited with code: 0, signal: null.
Dec 16 22:16:05 example code-server[2311357]: [22:16:05] [Theme Service] Attempting to find user's active theme: Default Dark+
Dec 16 22:16:05 example code-server[2311357]: [2021-12-16T20:16:05.910Z] debug got latest version {"latest":"3.12.0"}
Dec 16 22:16:05 example code-server[2311357]: [2021-12-16T20:16:05.911Z] debug comparing versions {"current":"4.0.0","latest":"3.12.0"}
Dec 16 22:16:06 example code-server[2311357]: [22:16:06] [10.220.117.24][b13d9645][ManagementConnection] New connection established.
Dec 16 22:16:06 example code-server[2311357]: [22:16:06] [10.220.117.24][7c9edf0f][ExtensionHostConnection] New connection established.
Dec 16 22:16:06 example code-server[2311357]: [22:16:06] [10.220.117.24][7c9edf0f][ExtensionHostConnection] <2317041> Launched Extension Host Process.
Dec 16 22:16:21 example code-server[2311357]: [2021-12-16T20:16:21.104Z] debug 2 active connections
More relevant info from dev tools in chrome where I get failed
(network tab):
fetch("https://example.com:80/vscode-remote-resource?path=%2Fusr%2Flib%2Fcode-server%2Fvendor%2Fmodules%2Fcode-oss-dev%2Fextensions%2Ftheme-defaults%2Fthemes%2Fdark_plus.json&tkn=0000", {
"headers": {
"sec-ch-ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"macOS\"",
"Referer": "https://example.com/",
"Referrer-Policy": "strict-origin-when-cross-origin"
},
"body": null,
"method": "GET"
});
In the console:
https://example.com:80/vscode-remote-resource?path=%2Fusr%2Flib%2Fcode-server%2Fvendor%2Fmodules%2Fcode-oss-dev%2Fextensions%2Ftheme-defaults%2Fthemes%2Fdark_plus.json&tkn=0000 net::ERR_SSL_PROTOCOL_ERROR extensionResourceLoaderService.ts:46
Screenshot
Accessing several random color themes:
Notes
As far as I can see this seems to be a classical issue with trying to access https on port 80. I'm not sure what has changed in this version (I'm guessing a hardcoded port (80), because vscode itself is not configured for https, as I'm accessing it through a reverse proxy - nginx-controller in kubernetes).
Downgrading to 3.12.0 works instantly.
I should also mention that port_in_redirect
is off (default behaviour for nginx controller).
Metadata
Metadata
Assignees
Labels
No labels