Skip to content

White screen of death #1223

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

Closed
jitheshkt opened this issue Dec 14, 2019 · 12 comments
Closed

White screen of death #1223

jitheshkt opened this issue Dec 14, 2019 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@jitheshkt
Copy link

  • code-server version: code-server2.1692-vsc1.39.2-linux-x86_64.tar.gz
  • OS Version: Ubuntu 18.04.3 LTS / Azure

Description

First of all, I can see that this issue is being already reported a few months back and it is solved as per my findings. However, I still have it. I am just starting code-server on the 8443 port on my vps. Release file I am using is code-server2.1692-vsc1.39.2-linux-x86_64.tar.gz

Starting on http and I am getting the login page but once I enter the password and go further I will get an indefinite loading screen. I have the following error always on the console:

Refused to load the font '<URL>' because it violates the following Content Security Policy directive: "font-src 'self' blob:".

@jitheshkt jitheshkt added the bug Something isn't working label Dec 14, 2019
@unfor19
Copy link

unfor19 commented Jan 21, 2020

Same here, the browser loads code-server but getting 300-400 errors of CSP as mentioned above

@sr229
Copy link
Contributor

sr229 commented Jan 22, 2020

Can't really replicate this, even running it in remote does not yield the expected results. Seems a really weird edge case.

@unfor19
Copy link

unfor19 commented Jan 22, 2020

Here's how it looks like.
The weird thing in my case, it loads some of the fonts, but not all of them

code-server-errors

@sr229
Copy link
Contributor

sr229 commented Jan 23, 2020

@code-asher can you investigate for a bit? I don't think I can replicate it in my end.

@code-asher
Copy link
Member

code-asher commented Jan 23, 2020 via email

@nhooyr
Copy link
Contributor

nhooyr commented Jan 27, 2020

Please feel free to reopen if this is still an issue. If it is, make sure to check code-server's output as @code-asher mentioned.

@nhooyr nhooyr closed this as completed Jan 27, 2020
@EnKrypt
Copy link

EnKrypt commented Mar 1, 2020

This started happening to me out of the blue.

No output from code-server.

The strange bit is that it works fine if I open a Private (incognito) window on Firefox, but if I open a regular window, it doesn't work and shows me a white screen. Even when I clear all site data, cookies, cache etc, the result is the same, which is VERY weird.

What variables remain even after all site data is cleared that would give a different outcome in a normal window and a private window?

Here's what shows up on the browser console when this happens.

cdr

code-server seems to be cursed when used with Firefox.

@kylecarbs
Copy link
Member

Seems like a CSP problem. Any ideas @code-asher ?

@nhooyr
Copy link
Contributor

nhooyr commented Mar 2, 2020

Believe we've fixed this in the restructure branch which should be merged soon but please double check @code-asher #1338

@code-asher
Copy link
Member

code-asher commented Mar 2, 2020 via email

@mikelxc
Copy link

mikelxc commented May 28, 2020

proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; proxy_set_header Accept-Encoding gzip;
Adding these to my Nginx config solves my problem

@alexandrebuisson
Copy link

@mikelxc thx !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants