question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot change color theme on prelease version 4.0.0

See original GitHub issue

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

  1. Upgraded from 3.12.0 to 4.0.0 by installing the deb package with apt install.
  2. 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: failed_color_theme

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).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
benz0licommented, Dec 17, 2021

Related to https://github.com/coder/code-server/issues/4608. This should be resolved with the next iteration of the 4.0.0 milestone.

1reaction
jsjoeiocommented, Dec 17, 2021

Yes! (sorry should have @'ed you to be clear 😃 ) Thanks for helping test 4.0.0 and make sure it’s solid for release!

Read more comments on GitHub >

github_iconTop Results From Across the Web

End of support for Adobe Color Themes panel
On July 14, 2021, the Adobe Color themes panel was disabled in Photoshop, Illustrator, InDesign, and After Effects.
Read more >
Xamarin.Forms 4.0.0.62955-pre2 (4.0.0 Pre Release 2) Release Notes
Release notes detailing new features, improvements, and issues fixed in Xamarin.Forms 4.0.0.62955-pre2 (4.0.0 Pre Release 2)
Read more >
flex_color_scheme | Flutter Package - Pub.dev
FlexColorScheme version 6.1.0 contains many new features, more component sub-themes and configurable properties. It improves seed-generated color scheme ...
Read more >
[policy, no patch] Switch to Semantic Versioning for Drupal ...
Contrib therefore can't depend on specific Drupal core versions. ... change for both versions result in 3.0.0 for Drupal 7 and 4.0.0 for ......
Read more >
R 4.0.0 now available, and a look back at R's history
The base graphics palette for prior versions of R (shown as R3 below) features saturated colors that vary considerably in brightness (for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found