Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Question] Coder Server didn't show icon via HTTP protocol #6997

Closed Answered by code-asher
lnvn asked this question in Q&A
Discussion options

Hi all, when I tried to deploy coder-server in an AWS EC2 instance via this command:
curl -fsSL https://code-server.dev/install.sh | sh

and configured:

$ cat config.yaml
bind-addr: 0.0.0.0:8080
auth: password
password: mypass

then I access the code server via my http://my-ip:8080/ but it did not show icon on the console

coder-feature

Any body have a suggestion to fix this issue?
Thanks a lot!

You must be logged in to vote

No need to worry about vsda.js, that is not available in the open source version of VS Code.

The browserObject error is interesting. What browser and version are you using?

But the font error is definitely the one causing the issue. Are you able to directly open http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6 and download the font? Or does it show HTML or something instead?

Replies: 1 comment 3 replies

Comment options

Are there any error messages in the browser console or failed requests in the network tab?

You must be logged in to vote
3 replies
Comment options

Hi @code-asher,

I see some err in console log

webcontent.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'browserObject')
 at webcontent.js:1:264
 at webcontent.js:3:152
 at webcontent.js:3:156
Failed to decode downloaded font: <URL>
 Failed to decode downloaded font: http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6
 Failed to decode downloaded font: http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6
...
OTS parsing error: invalid sfntVersion: 1013478509
...
GET http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vsda.js net::ERR_ABORTED 404 (Not Found)

and in Network tab, the request to vsda.js got 404 Not Found

Comment options

No need to worry about vsda.js, that is not available in the open source version of VS Code.

The browserObject error is interesting. What browser and version are you using?

But the font error is definitely the one causing the issue. Are you able to directly open http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6 and download the font? Or does it show HTML or something instead?

Answer selected by lnvn
Comment options

@code-asher I can not open "http://my-ip:8080/stable-34c6751bf8ae4e343f908d8aee691a4778f1d3a2/static/out/vs/base/browser/ui/codicons/codicon/codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6" because of the network policy

I think we know the problem here, thanks a lot @code-asher for help me to point out the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /