-
Notifications
You must be signed in to change notification settings - Fork 6k
Black Screen When Using Nginx #333
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
Comments
@vedantroy I followed your steps but was able to load the IDE. I did, however, see the |
Maybe there is a template I opened developer tools to get more information on the error. I saw this:
The actual IDE screen looked like this: |
Are you using nginx by chance? |
Yes. My original post in this thread says I am using nginx as a reverse proxy. |
I fixed the issue with the following thread: websockets/ws#979 In Nginx, you need to set the following headers:
|
Still getting this despite the fix. Symptoms resemble #469. |
Not getting this any more on CentOS 7 behind |
code-server
version: 1.32.0Description
I am self hosting code server. When I first tried to run code-server, I ran into this error: #121. I fixed the error by specifying
-d /home/[user]/.code-server
and manually creating/home/[user]/.code-server/Backups/workspaces.json
as a blank file.However, while code server allows me to log in, I get a grey screen and the following error prints to the console:
ERROR SHARED stderr {"data":"Uncaught Exception: Error: Unexpected end of JSON input\n\nSyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at pfs_1.readFile.then.contents (eval at exports.requireModule (/home/ubuntu/code-server-1.32.0-310-linux-x64/code-server:468:27684), <anonymous>:77277:45)\n at <anonymous>\n at Timeout.setTimeout [as _onTimeout] (eval at exports.requireModule (/home/ubuntu/code-server-1.32.0-310-linux-x64/code-server:468:27684), <anonymous>:52540:31)\n at ontimeout (timers.js:498:11)\n at tryOnTimeout (timers.js:323:5)\n at Timer.listOnTimeout (timers.js:290:5)\n"}
I am using the following command:
code-server --allow-http -p 3001 -d .code-server/ my-project-dir
I am using
allow-http
because I am using nginx as a reverse proxy.Steps to Reproduce
/home/[user]/.code-server/Backups/workspaces.json
filecode-server -p <some port> -d .code-server/
The text was updated successfully, but these errors were encountered: