Title: code-server v4 unable to load resources (e.g. new theme) -- requesting to port 80? · Issue #4608 · coder/code-server · GitHub
Open Graph Title: code-server v4 unable to load resources (e.g. new theme) -- requesting to port 80? · Issue #4608 · coder/code-server
X Title: code-server v4 unable to load resources (e.g. new theme) -- requesting to port 80? · Issue #4608 · coder/code-server
Description: I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation): GET https://code-server.mydomain.com:80/vscode-remote-resource?path=/usr/lib/code-server/vendor/modules/code-oss-dev...
Open Graph Description: I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation): GET https://code-server.mydomain.com:80/vscode-remote-resource?path=/usr/lib/code-...
X Description: I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation): GET https://code-server.mydomain.com:80/vscode-remote-resource?path=/usr/lib/c...
Opengraph URL: https://github.com/coder/code-server/issues/4608
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"code-server v4 unable to load resources (e.g. new theme) -- requesting to port 80?","articleBody":"I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation):\r\n\r\n\t GET https://code-server.mydomain.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\r\n\r\n\t ERR Unable to load vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/theme-defaults/themes/dark_plus.json: Failed to fetch: Error: Unable to load vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/theme-defaults/themes/dark_plus.json: Failed to fetch\r\n\t\tat https://code-server.mydomain.com/static/out/vs/workbench/workbench.web.api.js:1926:79062\r\n\t\tat async Z.restoreColorTheme (https://code-server.mydomain.com/static/out/vs/workbench/workbench.web.api.js:1926:79687)\r\n\r\nMy installation is in this context: https://github.com/cdr/code-server/discussions/4529#discussioncomment-1717543 (just replacing `curl install.sh | sh` with `curl install.sh | sh -s -- --version=4.0.0`).\r\n\r\nI also have the following `ENTRYPOINT` (i.e. binding to `8443` rather than `8080`):\r\n\r\n ENTRYPOINT [ \"code-server\", \"/root/workspace\", \"--bind-addr\", \"0.0.0.0:8443\" ]\r\n\r\nIt all seems to fire up just fine with `v4`... just not able to change theme for a start.\r\n\r\nI'm also seeing the following (not really doing anything to prompt it):\r\n\r\n\t ERR Unable to load and parse grammar for scope source.json.comments from vscode-remote://code-server.mydomain.com:80/usr/lib/code-server/vendor/modules/code-oss-dev/extensions/json/syntaxes/JSONC.tmLanguage.json TypeError: Failed to fetch\r\n\t\tat v.readExtensionResource (extensionResourceLoaderService.ts:46)\r\n\t\tat Object.readFile (abstractTextMateService.ts:246)\r\n\t\tat Object.loadGrammar (TMGrammarFactory.ts:53)\r\n\t\tat e.\u003canonymous> (main.js:107)\r\n\t\tat main.js:46\r\n\t\tat Object.next (main.js:27)\r\n\t\tat main.js:21\r\n\t\tat new Promise (\u003canonymous>)\r\n\t\tat i (main.js:17)\r\n\t\tat e._doLoadSingleGrammar (main.js:103)\r\n\tlog.ts:313 ERR No grammar provided for \u003csource.json.comments>: Error: No grammar provided for \u003csource.json.comments>\r\n\t\tat d (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:3170)\r\n\t\tat e.processQueue (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:2533)\r\n\t\tat e.\u003canonymous> (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:30634)\r\n\t\tat https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:28678\r\n\t\tat Object.next (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:28783)\r\n\t\tat s (https://code-server.mydomain.com/static/node_modules/vscode-textmate/release/main.js:1:27497)","author":{"url":"https://github.com/drmrbrewer","@type":"Person","name":"drmrbrewer"},"datePublished":"2021-12-11T09:45:08Z","url":"https://github.com/coder/code-server/issues/4608"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1d8a9313-cd28-59b8-1d1b-5f48889284f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D68:928E2:28A0881:363ABE3:6B01B733 |
| html-safe-nonce | 1d3fb5e386257d5b0560ef40d047eccd64049656694dbea550210693c1090fe8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDY4OjkyOEUyOjI4QTA4ODE6MzYzQUJFMzo2QjAxQjczMyIsInZpc2l0b3JfaWQiOiI3ODE3NTg5MTk2Mzk0MTgyNDUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b0e8c185a27d8b796a16276606d91ac0b77d7dba0aec88f3dce3ffaf6c3bd669 |
| hovercard-subject-tag | issue:1077486448 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/4608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/069ad967e7d2c36530eec8dd2c9eba8975bfcc4774dc60a85a471e487c4e96c9/coder/code-server/issues/4608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/069ad967e7d2c36530eec8dd2c9eba8975bfcc4774dc60a85a471e487c4e96c9/coder/code-server/issues/4608 |
| og:image:alt | I'm getting the following error in the console when trying to load a new theme (in a fresh v4 installation): GET https://code-server.mydomain.com:80/vscode-remote-resource?path=/usr/lib/code-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drmrbrewer |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width