Skip to content

SyntaxError: Unexpected end of JSON input #453

Closed
@haoteng10

Description

@haoteng10
  • code-server version: 1.691-vsc1.33.0
  • OS Version: Ubuntu 18.04 LTS Minimal, Google Cloud

Description

When I tried to run the code-server command, it gives me this error:

WARN Uncaught Exception: Error: Unexpected end of JSON input

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at pfs_1.readFile.then.contents (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:76703:45)
at
at Timeout.setTimeout [as _onTimeout] (/home/travis/build/codercom/code-server/packages/server/build/bootstrap-fork.js.gz:53086:31)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

Also, when I tried to connect the website ignoring the error, I received the error x.x.x.x refused to connect. (Okay. This is a different issue. I need to specify the specific IP address for the code-server to run on instead of 0.0.0.0)

Steps to Reproduce

  1. Extract the code-server and put it in bin.
  2. Run command sudo code-server -p 80

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions